Commit 5a705103 by BellCodeEditor

auto save

parent 20312c9b
Showing with 3 additions and 2 deletions
...@@ -15,5 +15,6 @@ name="fngyh" ...@@ -15,5 +15,6 @@ name="fngyh"
power=10 power=10
b=["刘备",78,"关羽",89,"张飞",90] b=["刘备",78,"关羽",89,"张飞",90]
for i in range(len(b)): for i in range(len(b)):
if i%2==1 if i%2==1 and b[i]>=power:
b.insert(i,power)
print(b)
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