diy4.py 373 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 12 name=imput("你叫啥名") power=int(input("你的臂力是多少")) list=["猴一",10,"猴二"21,"㺅五",22,"候队长",29,"㺅七",31] for i in range(len(list)): if i%2==1 and list[i]>=power: list.inset(i-1,name) list.inset(i,power) break print(list) dict={"五":1,"六":2,"七":3,"八":4,"九":5} print(dict) list["㺅五"]=23