Commit d8414c3b by BellCodeEditor

save project

parent a7e4cb85
Showing with 10 additions and 2 deletions
name='刘强'
\ No newline at end of file
name=input("请输入大力士的性名:")
po=int(input("请输入他的臂力(30~100):"))
hero=['a',30,'b',37,'c',52,'d',89,'e',98,'f',100]
for i in range(len(hero)):
if i%2==1 and hero[i]>=po:
hero.insert(i-1,name)
hero.insert(i,po)
break
print(hero[-6:])
\ 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