Commit c0a61271 by BellCodeEditor

save project

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