input: 下面是根据你提供的话生成的代码：
  
  
  def tic_tac_toe_game():
      """
      This function creates a simple Tic Tac Toe game in Python. It initializes a board, takes input from players, checks for victories, and prints the board after each move.
      
      Example:
      >>> tic_tac_toe_game()
      Welcome to Tic Tac Toe!
      
      |   |   |   |
      |   |   |   |
      |   |   |   |
      
      Your turn player 1
      Enter your move (1-9): 5
      
      |   |   |   |
      |   | X |   |
      |   |   |   |
      
      Your turn player 2
      Enter your move (1-9): 1
      
      | O |   |   |
      |   | X |   |
      |   |   |   |
      
      ... (and so on)
      """
      
      board = [" " for i in range(9)]
  
      def print_board():
          row1 = "| {} | {} | {} |".format(board[0], board[1], board[2])
          row2 = "| {} | {} | {} |".format(board[3], board[4], board[5])
          row3 = "| {} | {} | {} |".format(board[6], board[7], board[8])
  
          print()
          print(row1)
          print(row2)
          print(row3)
          print()
  
      def player_turn(icon):
          if icon == "X":
              number = 1
          elif icon == "O":
              number = 2
          
          print("Your turn player {}".format(number))
          
          choice = int(input("Enter your move (1-9): ").strip())
          if board[choice -1] == " ":
              board[choice -1] = icon
          else:
              print()
              print("That space is taken!")
  
      def is_victory(icon):
          if (board[0] == icon and board[1] == icon and board[2] == icon) or \
              (board[3] == icon and board[4] == icon and board[5] == icon) or \
              (board[6] == icon and board[7] == icon and board[8] == icon) or \
              (board[0] == icon and board[3] == icon and board[6] == icon) or \
              (board[1] == icon and board[4] == icon and board[7] == icon) or \
              (board[2] == icon and board[5] == icon and board[8] == icon) or \
              (board[0] == icon and board[4] == icon and board[8] == icon) or \
              (board[2] == icon and board[4] == icon and board[6] == icon):
              return True
          else:
              return False
  
      def main():
          print("Welcome to Tic Tac Toe!")
          print_board()
          
          while True:
              player_turn("X")
              print_board()
              if is_victory("X"):
                  print("X Wins! Congratulations!")
                  break
              elif not " " in board:
                  print("It's a tie!")
                  break
  
              player_turn("O")
              print_board()
              if is_victory("O"):
                  print("O Wins! Congratulations!")
                  break
              elif not " " in board:
                  print("It's a tie!")
                  break
  
      main()
      
  tic_tac_toe_game()
  
  
  这个函数定义了一个简单的井字棋游戏，初始化棋盘，处理玩家输入，检查胜利条件，并在每次移动后打印棋盘。
  
  请根据这个代码描述，生成一个英文问题。
  
  **问题:**  
  What Python function creates a simple Tic Tac Toe game that initializes a board, takes input from players, checks for victories, and prints the board after each move?
output:     
      board = [" " for i in range(9)]
  
      def print_board():
          row1 = "| {} | {} | {} |".format(board[0], board[1], board[2])
          row2 = "| {} | {} | {} |".format(board[3], board[4], board[5])
          row3 = "| {} | {} | {} |".format(board[6], board[7], board[8])
  
          print()
          print(row1)
          print(row2)
          print(row3)
          print()
  
      def player_turn(icon):
          if icon == "X":
              number = 1
          elif icon == "O":
              number = 2
          
          print("Your turn player {}".format(number))
          
          choice = int(input("Enter your move (1-9): ").strip())
          if board[choice -1] == " ":
              board[choice -1] = icon
          else:
              print()
              print("That space is taken!")
  
      def is_victory(icon):
          if (board[0] == icon and board[1] == icon and board[2] == icon) or \
              (board[3] == icon and board[4] == icon and board[5] == icon) or \
              (board[6] == icon and board[7] == icon and board[8] == icon) or \
              (board[0] == icon and board[3] == icon and board[6] == icon) or \
              (board[1] == icon and board[4] == icon and board[7] == icon) or \
              (board[2] == icon and board[5] == icon and board[8] == icon) or \
              (board[0] == icon and board[4] == icon and board[8] == icon) or \
              (board[2] == icon and board[4] == icon and board[6] == icon):
              return True
          else:
              return False
  
      def main():
          print("Welcome to Tic Tac Toe!")
          print_board()
          
          while True:
              player_turn("X")
              print_board()
              if is_victory("X"):
                  print("X Wins! Congratulations!")
                  break
              elif not " " in board:
                  print("It's a tie!")
                  break
  
              player_turn("O")
              print_board()
              if is_victory("O"):
                  print("O Wins! Congratulations!")
                  break
              elif not " " in board:
                  print("It's a tie!")
                  break
  
      main()
      
  tic_tac_toe_game()
  