Commit da614f59 by BellCodeEditor

save project

parent d29ba632
Showing with 12 additions and 3 deletions
a=[1,2,3,4,5,6,7]
print(a[:4:-1])
\ No newline at end of file
name=input("姓名:")
power=int(input("力量:"))
hero=["1",30,"2",37,"3",52,"4",89,"5",98]
for i in range(len(hero))
if i%2==1 and power<hero[i]:
hero.insert(i-1,name)
hero.insert(i,power)
break
else:
hero.insert(name)
hero.insert(power)
print(hero)
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