Commit ef357454 by BellCodeEditor

save project

parent f22a868d
Showing with 10 additions and 0 deletions
name=input("请输入您的名字")
power=int(input("请输入您的bilizhi"))
hero=['zhao,30,'ding',37,'sun',1,'wang',100,'zhou',1,'zhang',100]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,name)
break
print(hero[-6])
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