diy1.py 253 Bytes Edit 1 2 3 4 5 6 7 8 9 # 玩家出拳 player = input("请出拳(石头/剪刀/布):") print("玩家出拳:" + player) # 计算机随机出拳 import random list = [ "石头" , "剪刀" , "布" ] computer = random.choice(list) print("计算机出拳:" + computer) #