import random
player = int (input ("請輸入您要出的拳 石頭(1)/剪刀(2)/布(3):"))
computer = random.randint (1, 3)
print ("玩家選擇的拳頭是%d -電腦出的拳是%d" % (player, computer))
if ((player == 1 and computer == 2)
? ? ? ? or (player == 2 and computer == 3)
? ? ? ? or (player == 3 and computer == 1)):
? ? print ("玩家贏铝条!")
elif player == computer:
? ? print ("平局")
else:
? ? print ("玩家輸")