0
當我把代碼給一個Python井字遊戲我不斷收到此錯誤崇高文本2錯誤:在構建遊戲
Welcome to Tic Tac Toe
Do you want to be X or O?
Traceback (most recent call last):
File "C:\Python27\last try.py", line 145, in <module>
playerLetter, computerLetter = inputPlayerLetter()
File "C:\Python27\last try.py", line 27, in inputPlayerLetter
letter = input().upper()
EOFError: EOF when reading a line
Finished in 0.2s with exit code 1
。有人可以幫忙嗎?!
爲井字遊戲的代碼是從http://inventwithpython.com/tictactoe.py
注:我試圖安裝和配置sublimerepl,它並沒有解決問題。
請原諒我格式化我小菜單。 blockquote部分是即時消息。減去這裏所有的輸入代碼信息。 – user2045053