Commit 1f81e32c by BellCodeEditor

save project

parent f3b34548
Showing with 8 additions and 2 deletions
a=['华雄']
c=['颜良','文丑']
a.extend(c)
print(a)
\ No newline at end of file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉'] list=['苹果','香蕉','西瓜','香蕉','桃子','香蕉']
list.remove('香蕉') list.remove('香蕉')
for i in range(1,7,2): for i in range(2)
list.remove() list.remove('香蕉')
print(list) 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