Commit 0d8988b3 by BellCodeEditor

save project

parent 5209180c
Showing with 7 additions and 3 deletions
...@@ -5,5 +5,10 @@ ...@@ -5,5 +5,10 @@
#这时还是无名小卒的关羽上前请战,请从b列表中删掉“关羽”,用三种方法哦。 #这时还是无名小卒的关羽上前请战,请从b列表中删掉“关羽”,用三种方法哦。
b=['袁术','夏侯惇','曹操','关羽'] b=['袁术','夏侯惇','曹操','关羽']
b.remove('关羽') b.remove('关羽')
b.pop(3) print(b)
b.pop.(-1) b1=['袁术','夏侯惇','曹操','关羽']
\ No newline at end of file b1.pop(3)
print(b1)
b2=['袁术','夏侯惇','曹操','关羽']
b2.pop.(-1)
print(b2)
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