Skip to content

Commit 4e6621b

Browse files
committed
修改网友提出的错误,元组 for x in (1, 2, 3): print x, 改为 for x in (1, 2, 3): print(x)
1 parent 1ee3b7e commit 4e6621b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Article/PythonBasis/python3/tuple.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ del tuple1
144144
|(1, 2, 3) + (4, 5, 6)|(1, 2, 3, 4, 5, 6)|连接|
145145
|('Hi!',) * 4|('Hi!', 'Hi!', 'Hi!', 'Hi!')|复制|
146146
|3 in (1, 2, 3)|True|元素是否存在|
147-
|for x in (1, 2, 3): print x,|1 2 3|迭代|
147+
|for x in (1, 2, 3): print(x)|1 2 3|迭代|
148148

149149
## 7、元组内置函数 ##
150150

0 commit comments

Comments
 (0)
close