Commit 662236aa by BellCodeEditor

auto save

parent dabc75df
Showing with 4 additions and 10 deletions
......@@ -4,17 +4,10 @@ name='小月'
power=999
name2='您配吗'
power1=998
name3='阿阳'
power2=998
hero=['豌豆射首',363,'王者荣耀',888,'我不配',977,'dream',596,'霍雨浩',345]
hero=['王者荣耀',888,'我不配',977,'dream',596,'霍雨浩',345]
# 自动排序
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
hero.insert(i-1,name2)
hero.insert(i,power1)
hero.insert(i-1,name3)
hero.insert(i,power2)
break
hero.insert(i-1,name,i-1,name2)
hero.insert(i,power,i,power1)
print(hero)
\ 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