Commit 591be00a by BellCodeEditor

save project

parent 3e1dd480
Showing with 11 additions and 6 deletions
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识: name=input("请输入你的名字")
# 来,我给你起个头~ power=input("请输入你的臂力值")
# 从前啊,有三个bro,分别是:刘备、关羽、张飞... power=int(power)
a= ["吕布"] hero=["只因",30,"张三",37,"老八",52,"散滨",89,"jjb",98,"蓝色妖姬",100]
b = ["1",'2',"刘备","关羽","张飞","3"] for i in range(len(hero)):
print(b[2:5]) if i%2 == 1 and hero[i]>power:
hero.insert(i-1,name)
hero.insert(i,power)
s=len(hero)-6
print(hero[s:])
\ 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