Commit fb8dbc01 by BellCodeEditor

save project

parent d2cf4d1b
Showing with 13 additions and 0 deletions
name=关某
power=97
hero=['刘',30,'保安黄',37,'西凉马戏团',52,'关某',89,'赵',98]
for i in range(len(hero)):
if i%2==1:
if hero[i]>=power:
hero.insert(i-1,power)
hero.insert(i.name)
else:
hero,append()
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