Commit 85e60804 by BellCodeEditor

auto save

parent 478c5675
Showing with 0 additions and 15 deletions
o=["刘备",90,"关羽",94,"张飞",95]
name=input("名字")
power=int(input("力量"))
o=["刘备",90,"关羽",94,"张飞",95]
for i in range(len(o)):
if i%2 == 1 and o[i]>=power:
o.insert(i-1,name)
o.insert(i,power)
break
print(o[-7:-1])
\ 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