Commit 10422c34 by BellCodeEditor

save project

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