Commit 88701da8 by BellCodeEditor

save project

parent 971f00a1
Showing with 5 additions and 0 deletions
...@@ -2,4 +2,8 @@ ...@@ -2,4 +2,8 @@
list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉'] list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉']
for i in range(3): for i in range(3):
list.remove('香蕉') list.remove('香蕉')
print(list)
list.pop(1)
list.pop(3)
blist.pop(5)
print(list) print(list)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment