Commit cfc5f566 by BellCodeEditor

save project

parent 0db28b07
Showing with 10 additions and 0 deletions
name = input("请输入名字:")
power = eavl(input("请输入臂力值:"))
hero = ["张三",68,"李四",78,"张强",88,"王五",98]
for i in range(len(hero)):
if i%2==1:
if hero[i]>power:
hero.insert(i-1,name)
hero.insert(i,power)
break
print(hero)
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