剪刀石头布
import random
choices = ['石头', '剪刀', '布']
your_choice = input('请输入石头、剪刀或布')
computer_choice=random.choice(choices)
print(computer_choice)
if your_choice==computer_choice:
print('平局')
elif your_choice=='剪刀':
if computer_choice=='石头':
print('电脑赢了')
else:
print('电脑输了')
elif your_choice=='石头':
if computer_choice=='布':
print('电脑赢了')
else:
print('电脑输了')
else:
if computer_choice=='剪刀':
print('电脑赢了')
else:
print('电脑输了')