用 Python 创建石头，剪刀，布游戏。
import random

options = ["石头", "剪刀", "布"]

player1 = input("玩家1选择: ")
player2 = random.choice(options)

if player1 == player2:
    print("平局！")
elif player1 == "石头":
    if player2 == "布":
        print("玩家2赢了！")
    elif player2 == "剪刀":
        print("玩家1赢了！")
elif player1 == "布":
    if player2 == "石头":
        print("玩家1赢了！")
    elif player2 == "剪刀":
        print("玩家2赢了！")
elif player1 == "剪刀":
    if player2 == "石头":
        print("玩家2赢了！")
    elif player2 == "布":
        print("玩家1赢了！")
else:
    print("无效输入。您没有输入石头、剪刀或布，请重试。")