Commit 3226bac7 by BellCodeEditor

save project

parent 468cdb87
Showing with 8 additions and 2 deletions
...@@ -4,5 +4,10 @@ ...@@ -4,5 +4,10 @@
bros=["刘备","关羽","张飞"] bros=["刘备","关羽","张飞"]
bros.pop(1) bros.pop(1)
bros.pop(-2) #bros.pop(-2)
bros.remove("关羽") #bros.remove("关羽")
bros.insert(1,"华雄")
bros.append("颜良")
a=["葡萄","苹果"]
bros.extend(a)
print(bros)
\ 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