Commit 092b4f7b by BellCodeEditor

save project

parent 03fb1c5d
Showing with 9 additions and 0 deletions
name='刘强'
power=59
hero=['赵良',14,'张亮',20,'老六',29,'小亮',30]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
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