diy.py 262 Bytes Edit 1 2 3 4 5 6 7 8 9 name = input("名字") power = input("臂力值") hero=['0','30','1','37','2','52','3','89','4','98','5','100'] for i in range(len(hero)): if 1%2==1 and hero[i]>=power: hero.insert(i-1,name) hero.insert(i,power) break print(hero[-6:])