Commit 73fb931e by BellCodeEditor

save project

parent 0ecd3e9a
Showing with 7 additions and 7 deletions
n=input("name") n=input("name:")
p=input("power") p=input("power:")
a=int(p) a=int(p)
h=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100] h=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100]
for i in range(len(h)): for i in range(len(h)):
if i%2==1 and a<=h[i]: if i%2==1 and a<=h[i]:
h.index(i-1,n) h.insert(i-1,n)
h.index(i,a) h.insert(i,a)
exit() break
print() print(h[len(h)-6:len(h)])
\ 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