Commit 62aab085 by BellCodeEditor

save project

parent 821ac628
Showing with 17 additions and 2 deletions
...@@ -14,4 +14,19 @@ print(bros) ...@@ -14,4 +14,19 @@ print(bros)
#删除关羽 #删除关羽
b=["袁术","夏侯惇","曹操","关羽"] b=["袁术","夏侯惇","曹操","关羽"]
b.pop(3) b.pop(3)
print(b) print(b)
\ No newline at end of file #关羽迎战,对战华雄
a=["华雄"]
a.insert(1,"关羽")
a.append("关羽")
print(a)
#颜良文丑
a=["华雄"]
c=["颜良","文丑"]
a.extend[c]
print(a)
#三英战吕布
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