Commit 253fa091 by BellCodeEditor

save project

parent 86cdcc22
Showing with 9 additions and 1 deletions
a=['华雄']
c=['颜良','文丑']
a.insert(0,'关羽')
a.append('张飞')
a.extend(c)
print(a)
\ No newline at end of file
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
# 来,我给你起个头~ # 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞... # 从前啊,有三个bro,分别是:刘备、关羽、张飞...
bros=["刘备","关羽","张飞"] bros=["刘备","关羽","张飞"]
bros.remove('关羽') bros.pop(1)
print(bros) 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