Commit a5449ed4 by BellCodeEditor

save project

parent 65f4bef4
Showing with 6 additions and 15 deletions
...@@ -3,17 +3,8 @@ ...@@ -3,17 +3,8 @@
# 和你的小伙伴用列表讲讲温酒斩华雄的故事,上半集,并完成下面的挑战: # 和你的小伙伴用列表讲讲温酒斩华雄的故事,上半集,并完成下面的挑战:
#这时还是无名小卒的关羽上前请战,请从b列表中删掉“关羽”,用三种方法哦。 #这时还是无名小卒的关羽上前请战,请从b列表中删掉“关羽”,用三种方法哦。
a= ['华雄'] a=[1,3,5,7,9]
a.append('颜良') b=[2]
a.append('文丑') c=a[1:3]
print(a) b.extend(c)
print(b)
a= ['华雄'] \ No newline at end of file
b=['颜良','文丑']
a.extend(b)
print(a)
a= ['华雄']
a.insert(0,'颜良')
a.insert(1,'文丑')
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