Commit 38d3cb2d by BellCodeEditor

save project

parent bfc2e7bb
Showing with 2 additions and 2 deletions
......@@ -9,8 +9,8 @@
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100]
a=int(input('臂力值'))
b=input('名字')
for i in range(len(hero)):
if power>=hero[i]:
for i in range(1,len(hero),2):
if a>=hero[i]:
hero.insert(i-1,b)
hero.insert(i,a)
break
......
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