下面是一个简单的五子棋游戏的Python代码示例: def print_board(board): for row in board: print(' '.join(row)) def check_win(board, player): for i in range(5): for j in range(5): if board[i][j] == player: # 检查横向是否有五子相连 if j + 4 < 5 and all(board[i][j+k] ...