Commit 159fa802 by BellCodeEditor

save project

parent 17eebd3f
Showing with 15 additions and 10 deletions
# 勇于挑战的创造师,请运行这段代码,看看能不能将颜良、文丑加入战场?
a= ['华雄']
a.append('颜良','文丑')
print(a)
bro1="关羽"
bro2="刘备"
bro3="张飞"
bros=["刘备","关羽","张飞"]
bro1=["关羽",160,8.5]
bro2=["刘备",161,9.1]
bro3=["张飞",166,8.3]
bros[0]="关羽"
bros[1]="刘备"
a=["文丑"]
bros.insert(0,"诸葛亮")
bros.append("颜良")
bros.extend(a)
print(bros)
# 勇于挑战的创造师,请运行下面的代码,观察运行结果,和小伙伴们说说你的发现?
a= ['华雄']
c=['颜良','文丑']
a.extend(c)
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