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