Commit 21b9f476 by BellCodeEditor

save project

parent 5ec5cd6c
Showing with 3 additions and 4 deletions
name='刘强' name='刘强'
power=-1 power=60
hero=['董文轩',100,'郭强',100,'赵云',999] hero=['董文轩',100,'郭强',100,'赵云',999]
for i in range(len(heor)): for i in range(len(hero)):
if i%2==1 and hero[1]>=power: if i%2==1 and hero[1]>=power:
hero.insert(i-1,name) hero.insert(i-1,name)
hero.insert(i,power) hero.insert(i,power)
break break
print(hero) 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