import random
p = player = int(input("请出招(石头-0,剪刀-1,布-2):"))
c = computer = random.randint(0, 2)
# print(f"你:{p}")
# print("电脑:%d" % c)
# print(f"你:{p}\n电脑:{c}")
print("你:%d\n电脑:%d" % (p, c))
if (p == 0 and c == 1) or (p == 1 and c == 2) or (p == 2 and c == 0):
print("You Win!")
elif p == c:
print("平局")
else:
print("You Lose!")