0

このエラーが発生し続ける

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

Pythonの三目並べゲームにコードを入れたとき。誰か助けてもらえますか?

三目並べゲームのコードはhttp://inventwithpython.com/tictactoe.pyからのものです。

:sublimereplをインストールして構成しようとしましたが、問題は解決しません。

4

1 に答える 1

1

input()関数がテキストの入力を要求するため、ターミナルでコードを実行する必要があります。

崇高な環境は十分ではありません。

于 2013-02-05T23:51:53.813 に答える