Commit 673aa2a2 by BellCodeEditor

save project

parent cd5a222a
Showing with 5 additions and 5 deletions
b=['wc','11','wcc',22,'wccc',55,'wccccc',77,'wcccccc',88] name=input("你叫什么名字?")
name='王强' power=int(input("你的臂力值是多少啊?"))
power=66 b=['wc',11,'wcc',22,'wccc',55,'wccccc',77,'wcccccc',88]
for i in range(len(b)): for i in range(len(b)):
if i%2==1 and b[i]>=power: if i%2==1 and b[i]>=power:
b.extend(i-1,name) b.insert(i-1,name)
b.extend(i,p) b.insert(i,power)
break break
print(b[6:12]) print(b[6:12])
......
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