这个一个剪刀石头布的游戏怎么会错?
代码:
import ramdom
win = '你赢了!'
not_win = '你输了!'
haha = '平局'
print('剪刀石头布')
random_1 = random.randint(1,3)
AI = str(random_1)
print('''
1=剪刀
2=石头
3=布
''')
player = str(input('请出:'))
if AI == '1':
print('Al出了剪刀')
elif AI == '2':
print('AI出了石头')
elif AI == '3':
print('AI出了布')
if AI == '1' and player == '1':#平
print(haha)
elif AI == '1' and player == '2':#剪刀 石头
print(win)
elif AI == '1' and player == '3':#剪刀 布
print(not_win)
elif AI == '2' and player == '1':#石头 剪刀
print(not_win)
elif AI == '2' and player == '2':#平
print(haha)
elif AI == '2' and player == '3':#石头 布
print(wim)
elif AI == '3' and player == '1':#布 剪刀
print(wim)
elif AI == '3' and player == '2':#布 石头
print(not_wim)
elif AI == '3' and player == '3':#平
print(haha)