import random
print "Welcome to my mastermind game. instead of colors, \
we will be using numbers, one through six \
(red is left, white is right)"
board = []
for x in range(0, 10):
board.append(["O"]*4)
def mastermind_board(board):
for row in board:
print " ".join(row)
...
mastermind_board(board)
turn + 1
这些print " ".join(row)
行是有问题的地方,在提交第一个项目后,它会输入错误(点是对问题不重要的额外代码)