Skip to content

Commit 81aef4d

Browse files
authored
Merge pull request walter201230#24 from wwivywwivy/wwivywwivy-patch-1
更新list.remove,更改5中竟然为既然
2 parents 4e6621b + 7a2e614 commit 81aef4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Article/PythonBasis/python3/List.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ print(name)
143143

144144
## 5、怎么删除 List(列表) 里面的元素 ##
145145

146-
那竟然这样,肯定会有人中途退出的。
146+
那既然这样,肯定会有人中途退出的。
147147

148148
那么我们就需要在列表中,把他的名字去掉。
149149

@@ -197,6 +197,7 @@ print(name)
197197
|list.index(obj)|从列表中找出某个值第一个匹配项的索引位置|
198198
|list.insert(index, obj)|将对象插入列表|
199199
|list.pop(obj=list[-1])|移除列表中的一个元素(默认最后一个元素),并且返回该元素的值|
200+
|list.remove(obj)|移除列表中的一个元素(参数是列表中元素),并且不返回任何值|
200201
|list.reverse()|反向列表中元素|
201202
|list.sort([func])|对原列表进行排序|
202203

0 commit comments

Comments
 (0)