We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e6621b + 7a2e614 commit 81aef4dCopy full SHA for 81aef4d
Article/PythonBasis/python3/List.md
@@ -143,7 +143,7 @@ print(name)
143
144
## 5、怎么删除 List(列表) 里面的元素 ##
145
146
-那竟然这样,肯定会有人中途退出的。
+那既然这样,肯定会有人中途退出的。
147
148
那么我们就需要在列表中,把他的名字去掉。
149
@@ -197,6 +197,7 @@ print(name)
197
|list.index(obj)|从列表中找出某个值第一个匹配项的索引位置|
198
|list.insert(index, obj)|将对象插入列表|
199
|list.pop(obj=list[-1])|移除列表中的一个元素(默认最后一个元素),并且返回该元素的值|
200
+|list.remove(obj)|移除列表中的一个元素(参数是列表中元素),并且不返回任何值|
201
|list.reverse()|反向列表中元素|
202
|list.sort([func])|对原列表进行排序|
203
0 commit comments