Commit c8ac8891 by BellCodeEditor

save project

parent 424d09d4
Showing with 4 additions and 5 deletions
...@@ -4,11 +4,10 @@ ...@@ -4,11 +4,10 @@
# a.insert(3,"4") # a.insert(3,"4")
# print(a) # print(a)
h=input("名字") h=input("名字")
j=input("臂力") j=int(input("臂力"))
w=['1',56,'2',67,'3',98,'4',300] w=['1',56,'2',67,'3',98,'4',300]
for i in range(len(w)): for i in range(len(w)):
if 1%2==1 and hero[i]>=j if i%2==1 and w[i] >= j:
w.insert(i-1,name) w.insert(i-1,h)
w.insert(i,h) w.insert(i,j)
print(w) print(w)
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