Commit 419091ce by BellCodeEditor

save project

parent 5cb43eb3
Showing with 4 additions and 2 deletions
......@@ -3,9 +3,10 @@ power = input("请输入臂力值:")
hero = ['张三',68,' 李四',78,'张强',88,'王五',98]
for i in range(len(hero)):
if i%2==1:
if power>hero[i]:
if power<hero[i]:
hero.insert(i-1,name)
hero.insert(i,power)
break
print(hero)
\ No newline at end of file
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