Commit d0f02a67 by BellCodeEditor

save project

parent 906ddf63
Showing with 6 additions and 2 deletions
...@@ -2,4 +2,8 @@ a=["华雄"] ...@@ -2,4 +2,8 @@ a=["华雄"]
b=["袁术","夏侯惇","曹操","关羽","关羽","关羽"] b=["袁术","夏侯惇","曹操","关羽","关羽","关羽"]
for i in range(3): for i in range(3):
b.pop(3) b.pop(3)
print(b) print(b)
\ No newline at end of file c=["关羽","刘备"]
c.pop(-1)
d=["关羽","张飞"]
d.remove("关羽")
\ 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