Skip to content

Commit 4e014c7

Browse files
committed
update List & Dict
1 parent 253d5e7 commit 4e014c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Article/PythonBasis/python3/List.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ print(name)
180180
|[1, 2, 3] + [4, 5, 6]| [1, 2, 3, 4, 5, 6]| 组合|
181181
|['Hi!'] * 4|['Hi!', 'Hi!', 'Hi!', 'Hi!']|复制|
182182
|3 in [1, 2, 3]|True|元素是否存在于列表中|
183-
|for x in [1, 2, 3]: print x,|1 2 3|迭代|
183+
|for x in [1, 2, 3]: print(x)|1 2 3|迭代|
184184

185185

186186
## 7、List (列表)函数&方法 ##

Article/PythonBasis/python4/Dict.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ print(dict1)
190190
|dict.clear()|删除字典内所有元素|
191191
|dict.copy()|返回一个字典的浅复制|
192192
|dict.values()|以列表返回字典中的所有值|
193-
|popitem()|随机返回并删除字典中的一对键和值|
193+
|dict.popitem()|随机返回并删除字典中的一对键和值|
194194
|dict.items()|以列表返回可遍历的(键, 值) 元组数组|
195195

196196

0 commit comments

Comments
 (0)