Commit 52d0d72e by BellCodeEditor

save project

parent 477486f6
Showing with 4 additions and 4 deletions
......@@ -8,16 +8,16 @@
# 归档处
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100]
a=input("你在狗叫什么?")
abc=input("你在狗叫什么?")
b=input("你在狗叫什么?")
c=int(b)
for i in range(len(hero)):
if i%2==1 and hero[i]>=abc:
if i%2==1 and hero[i]>=c:
hero.insert(i-1,a)
hero.insert(i,c)
break
print(hero)
a=hero[-1:-7]
print(a)
list=hero[-6:]
print(list)
......
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