From 7a2e614bff4e4bc52ab2162d2cd091e80dbd15dc Mon Sep 17 00:00:00 2001 From: wwivywwivy <306809754@qq.com> Date: Wed, 25 Sep 2019 11:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0list.remove=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E6=94=B95=E4=B8=AD=E7=AB=9F=E7=84=B6=E4=B8=BA=E6=97=A2?= =?UTF-8?q?=E7=84=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新list.remove,更改5中竟然为既然 --- Article/PythonBasis/python3/List.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Article/PythonBasis/python3/List.md b/Article/PythonBasis/python3/List.md index f0dce64..059adb8 100644 --- a/Article/PythonBasis/python3/List.md +++ b/Article/PythonBasis/python3/List.md @@ -143,7 +143,7 @@ print(name) ## 5、怎么删除 List(列表) 里面的元素 ## -那竟然这样,肯定会有人中途退出的。 +那既然这样,肯定会有人中途退出的。 那么我们就需要在列表中,把他的名字去掉。 @@ -197,6 +197,7 @@ print(name) |list.index(obj)|从列表中找出某个值第一个匹配项的索引位置| |list.insert(index, obj)|将对象插入列表| |list.pop(obj=list[-1])|移除列表中的一个元素(默认最后一个元素),并且返回该元素的值| +|list.remove(obj)|移除列表中的一个元素(参数是列表中元素),并且不返回任何值| |list.reverse()|反向列表中元素| |list.sort([func])|对原列表进行排序|