Commit 3f0b161c by BellCodeEditor

save project

parent f351ea57
Showing with 36 additions and 2 deletions
......@@ -13,4 +13,38 @@ bros[1]="刘备"
print(bros)
print(bro1)
print(bro2)
print(bro3)
\ No newline at end of file
print(bro3)
list=['苹果','香蕉','西瓜','香蕉','桃子']
list.remove('香蕉')
list.remove('香蕉')
list.remove('香蕉')
print(list)
list=['苹果','香蕉','西瓜','香蕉','桃子']
list.pop(1)
list.pop(2)
list.pop(3)
print(list)
list=['苹果','香蕉','西瓜','香蕉','桃子']
list.pop(-1)
list.pop(-2)
list.pop(-3)
b=['袁术','夏侯惇','曹操','关羽']
b.pop(3)
print(b)
b=['袁术','夏侯惇','曹操','关羽']
b.pop(-3)
print(b)
b=['袁术','夏侯惇','曹操','关羽']
b.remove('关羽')
print(b)
\ 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