Commit f672a43c by BellCodeEditor

save project

parent b2d62863
Showing with 9 additions and 5 deletions
......@@ -7,14 +7,18 @@ name=input("你的姓名?")
a=input("你的臂力值?(30-100)")
power=int(a)
if power<30 or power>100:
while power <30 or >100:
a=input("你的臂力值?(30-100)")
power=int(a)
while True:
if power <30 or >100:
a=input("你的臂力值?(30-100)")
power=int(a)
break
# 归档处
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100]
for i in range(len(hero)):
newlist=[name,power]
if
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
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