Commit c0a61271 by BellCodeEditor

save project

parent ab3618a6
Showing with 9 additions and 5 deletions
a=['吕'] name=input("你名:")
b=['术','瓒','关','飞','备','曹'] power=int(input("你臂是"))
a.extend(b[2:5]) hero=['赵倒一',30,'丁二狗',37,'孙五香',52,'王蚱蜢',89,'周大亮',98,'张狼',100]
print(a) for i in range(len(hero)):
\ No newline at end of file if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
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