Commit 305666b0 by BellCodeEditor

save project

parent 07ef43ed
Showing with 24 additions and 2 deletions
......@@ -3,5 +3,26 @@
# 省略繁杂情节,刘关张三人一起冲入战场,围攻吕布:
a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
b[2:5]
print(a)
#
print(b)
print(b[2:5])
# 注意从现在开始,字符串用单引号咯
# import time
# 1
# # 和你的小伙伴用列表讲讲温酒斩华雄的故事,上半集,并完成下面的挑战:
# c=["华雄"]
# # #这时还是无名小卒的关羽上前请战,请从b列表中删掉“关羽”,用三种方法哦。
# d=['袁绍','夏侯惇','曹操','关羽']
# e=["关羽","刘备","张飞","诸葛亮","庞统","马超","孙权"]
# b.pop(3)
# # time.sleep(1)
# a.insert(0,"袁术")
# # a.append("文丑")
# f=["颜良","周瑜"]
# # a.extend(d)
# # # c.pop(-7)
# # # # a.wait(1)
# # # c.remove("张飞")
# print(b+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