Commit ef6eb902 by BellCodeEditor

auto save

parent 4d8b6805
Showing with 10 additions and 0 deletions
...@@ -7,7 +7,17 @@ ...@@ -7,7 +7,17 @@
# 归档处 # 归档处
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100] hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100]
name = input("名字:")
power = input('力量:')
int h
for i in range(len(hero)): for i in range(len(hero)):
h=int(hero[i%2==1])
if h>=power
hero.insert(i-1,name)
hero.insert(i,power)
break
print(hero)
......
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