Commit c078f8e6 by BellCodeEditor

save project

parent fe041101
Showing with 9 additions and 2 deletions
a=["apple","apple","apple","apple","apple","apple"]
for i in range(6):
a.remove(apple)
print(a)
\ No newline at end of file
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# 来,我给你起个头~ # 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞... # 从前啊,有三个bro,分别是:刘备、关羽、张飞...
bros=["刘备","关羽","张飞"] bros=["刘备","关羽","张飞"]
print("bros=["刘备","关羽","张飞"]") print(bros)
bros[0]="关羽" bros[0]="关羽"
bros[1]="刘备" bros[1]="刘备"
print("bros=["关羽","刘备","张飞"]") print(bros)
bros.pop(1)
print(bros)
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