Commit 50db9ba2 by BellCodeEditor

save project

parent 8d01de85
Showing with 3 additions and 3 deletions
a=['袁术',22,'公孙瓒',33,'关羽',44,'张飞',55,'刘备',66,'曹操',77]
name='路人甲'
power=60
name=input("你的名字:")
power=input("你的臂力值:")
for i in range(len(a)):
if i%2==1 and power<=a[i]:
if i%2==1 and int(power)<=a[i]:
a.insert(i-1,name)
a.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