Commit 8e9a10a9 by BellCodeEditor

save project

parent 60fe40c5
Showing with 13 additions and 6 deletions
#勇于挑战的创造师,请运行这段代码,看看他能不能将颜良 文丑加入战场?
a=['华雄']
c=['颜良','文丑']
a.extend(c)
print(a)
\ No newline at end of file
a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
b.extend(a)
print(b[2:5])
b.remove("曹操")
b.insert(0,"张飞")
print(b)
\ 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