Commit 0e780c02 by BellCodeEditor

save project

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