Commit ec712e2e by BellCodeEditor

save project

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