diy1.py 251 Bytes Edit 1 2 3 4 5 6 7 8 9 10 play=input("出什么?") input("玩家"+player)# 玩家出拳 import random list=["石头/剪刀、布"] comput=random.choice(list) print(comput) if play==comput: print("平局") elif play==石头 and comput: print("玩家赢了")