Commit 70652d24 by BellCodeEditor

save project

parent 36af9115
Showing with 9 additions and 1 deletions
......@@ -5,7 +5,15 @@
# 问询处
a=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',10
a=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',10]
name=input("请输入名字")
powr=int(input("请输入臂力值"))
for i in range(len(a)):
if i%2==1 and a[i]>=powr:
a.insert(i-1,name)
a.insert(i,powr)
break
print(a[-6])
......
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