Commit 10422c34 by BellCodeEditor

save project

parent 98bda8ad
Showing with 4 additions and 4 deletions
o=["刘备",90,"关羽",94,"张飞",95]
name=input("名字")
power=input("力量")
power=int(input("力量"))
o=["刘备",90,"关羽",94,"张飞",100]
o=["刘备",90,"关羽",94,"张飞",95]
for i in range(len(o)):
if i%2 == 1 and o[i]>=power:
......@@ -11,4 +11,4 @@ for i in range(len(o)):
o.insert(i,power)
break
print(o)
\ No newline at end of file
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