diy1.py 158 Bytes Edit 1 2 3 4 5 6 7 # 玩家出拳 import random a=input("出拳(石头/剪刀/布)") print("玩家出:"+a) list=["剪刀","石头","布"] a=random.choices(list) print(a)