Commit 7322d25f by BellCodeEditor

save project

parent da808c4c
Showing with 5 additions and 0 deletions
...@@ -2,3 +2,7 @@ ...@@ -2,3 +2,7 @@
list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉'] list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉']
list.remove('香蕉') list.remove('香蕉')
print(list) print(list)
list.append('香蕉')
print(list)
list.pop(-1)
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