第1节完成

This commit is contained in:
XiongNeng
2014-08-31 12:11:24 +08:00
parent 2405d4707f
commit 8e63ecfbb4

View File

@@ -71,7 +71,7 @@
有时候你可能只想解压一部分丢弃其他的值。对于这种情况Python并没有提供特殊的语法。
但是你可以使用任意变量名去占位,到时候丢掉这些变量就行了。代码示例:
.. code-block::python
.. code-block:: python
>>> data = [ 'ACME', 50, 91.1, (2012, 12, 21) ]
>>> _, shares, price, _ = data