Commit dc7adf45 by BellCodeEditor

save project

parent 3f307002
Showing with 5 additions and 1 deletions
...@@ -12,6 +12,10 @@ for i in range(len(hero)): ...@@ -12,6 +12,10 @@ for i in range(len(hero)):
hero.insert(i-1,a) hero.insert(i-1,a)
hero.insert(i,b) hero.insert(i,b)
break break
elif i%2==1 and b> hero[i]:
hero.append(a)
hero.append(b)
break
# 打印出臂力最强的三个人和他们对应的臂力值: # 打印出臂力最强的三个人和他们对应的臂力值:
#hero.insert(6,"江") print(hero)
print(hero[-6:]) 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