Commit f8f8f91e by BellCodeEditor

save project

parent 271ea504
Showing with 4 additions and 4 deletions
# 臂力挑战赛 # 臂力挑战赛
# 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中? # 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中?
name='小月' name='小月'
power=66 power=999
name2='您配吗' name2='您配吗'
power1=999 power1=998
name3='阿阳' name3='阿阳'
power2=999 power2=998
hero=['豌豆射首',30,'王者荣耀',37,'我不配',52,'dream',89,'霍雨浩',98] hero=['豌豆射首',363,'王者荣耀',888,'我不配',977,'dream',596,'霍雨浩',345]
# 自动排序 # 自动排序
for i in range(len(hero)): for i in range(len(hero)):
if i%2==1 and hero[i]>=power: if i%2==1 and hero[i]>=power:
......
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