Wiki
Books
Shop
Courses
Careers
Change language
English
Italiano
Deutsch
Français
Español
Türk
Русский
Português
Polski
Nederlandse
中文
한국어
日本語
हिन्दी
Python.Engineering
Wiki
如何同時從列表中刪除多個索引?
如何同時從列表中刪除多個索引?
__del__
|
__delete__
|
code Python module
|
Python functions
|
re Python module
|
StackOverflow
|
time Python module
Michael Zippo
11.03.2022
假設我在這裡有這個列表:
list = [a, b, c, d, e, f, g]
如何我同時刪除說索引
2、3、4
和
5
?
pop 不接受多個值。我該怎麼辦這樣做?