Commit 5c7cbac9 by BellCodeEditor

save project

parent 26873c42
Showing with 3 additions and 1 deletions
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
# 请优化刚刚的代码,并增添交互效果,和自动输出最强三人信息的功能~ # 请优化刚刚的代码,并增添交互效果,和自动输出最强三人信息的功能~
# 问询处 # 问询处
name=input('你叫啥')
power=int(input('你力量是多少'))
# 归档处 # 归档处
...@@ -12,7 +14,7 @@ for i in range(len(hero)): ...@@ -12,7 +14,7 @@ for i in range(len(hero)):
hero.insert(i-1,name) hero.insert(i-1,name)
hero.insert(i,power) hero.insert(i,power)
break break
print(hero) print(hero[-6:])
# 自动排序 # 自动排序
......
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