Commit c23229fc by BellCodeEditor

save project

parent 26b3b1d4
Showing with 20 additions and 0 deletions
...@@ -11,3 +11,22 @@ bro3=["张飞",166,8.3] ...@@ -11,3 +11,22 @@ bro3=["张飞",166,8.3]
bros[0]="关羽" bros[0]="关羽"
bros[1]="刘备" bros[1]="刘备"
print(bros) print(bros)
#删除关羽
b=["袁术","夏侯惇","曹操","关羽"]
b.pop(3)
print(b)
#关羽上场
a=["华雄"]
a.insert(1,"关羽")
a.append("关羽")
print(a)
#颜良文丑
a=["华雄"]
c=["颜良","文丑"]
a.extend(c)
print(c)
#三迎战吕布
a=["卢布"]
b=["袁术","公孙瓒","刘备","关羽","张飞","曹操"]
a.extend(b[2:5])
print(a)
\ 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