Commit 62aab085 by BellCodeEditor

save project

parent 821ac628
Showing with 16 additions and 0 deletions
...@@ -15,3 +15,18 @@ print(bros) ...@@ -15,3 +15,18 @@ print(bros)
b=["袁术","夏侯惇","曹操","关羽"] b=["袁术","夏侯惇","曹操","关羽"]
b.pop(3) b.pop(3)
print(b) print(b)
#关羽迎战,对战华雄
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