Commit f1cda1ab by BellCodeEditor

save project

parent 363b08b5
Showing with 2 additions and 2 deletions
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
#小 石锁 30公斤 大 100 整数 #小 石锁 30公斤 大 100 整数
#添加交互,自动 #添加交互,自动
#问 #问
name input("名") name = input("名")
power=int(input("力")) power=int(input("力"))
here=['a',3,"b",4,"c",5,"d",6,"e"7] here=['a',3,"b",4,"c",5,"d",6,"e",7]
for i in range(len(hero)): for i in range(len(hero)):
if i%2==1 and hero[i]>=power: if i%2==1 and hero[i]>=power:
hero.insert(i-1,name) hero.insert(i-1,name)
......
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