import random
print("0.石头 1.剪刀 2.布")
print("玩家出拳")
player=int(input())
names=["石头","剪刀","布"]
fist=random.randint(0,2)
print("电脑出:",names[fist])
print("电脑出:",names[fist])
print("玩家出:",names[player])
if player==0 and fist==1 or player==1 and fist==2 or player==2 and fist==0:
player("玩家胜")
elif player==fist:
print("平局")
else:
print("电脑胜")
10-20
2302
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-27
1319
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)