Commit 1f790c3b by BellCodeEditor

save project

parent bcf57eeb
Showing with 4 additions and 2 deletions
...@@ -2,7 +2,8 @@ neme='刘强' ...@@ -2,7 +2,8 @@ neme='刘强'
power=66, power=66,
hero=['赵云','70','丁二','37','孙','32','周深','36','王猛','45'] hero=['赵云','70','丁二','37','孙','32','周深','36','王猛','45']
for i in range(len(hero)): for i in range(len(hero)):
hero.inset(i-1,neme) if i%2==1 and hero[i]>=power
hero.inset(i,power) hero.insert(i-1,neme)
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