提交 4e6621ba 编写于 作者: T TwoWater

修改网友提出的错误,元组 `for x in (1, 2, 3): print x,` 改为 `for x in (1, 2, 3): print(x)`

上级 1ee3b7ef
...@@ -144,7 +144,7 @@ del tuple1 ...@@ -144,7 +144,7 @@ del tuple1
|(1, 2, 3) + (4, 5, 6)|(1, 2, 3, 4, 5, 6)|连接| |(1, 2, 3) + (4, 5, 6)|(1, 2, 3, 4, 5, 6)|连接|
|('Hi!',) * 4|('Hi!', 'Hi!', 'Hi!', 'Hi!')|复制| |('Hi!',) * 4|('Hi!', 'Hi!', 'Hi!', 'Hi!')|复制|
|3 in (1, 2, 3)|True|元素是否存在| |3 in (1, 2, 3)|True|元素是否存在|
|for x in (1, 2, 3): print x,|1 2 3|迭代| |for x in (1, 2, 3): print(x)|1 2 3|迭代|
## 7、元组内置函数 ## ## 7、元组内置函数 ##
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册