-5
class Hangman():
def __init__(self):
print
"Welcome to 'Hangman', are you ready to die?"
print
"(1)Yes, for I am already dead.\n(2)No, get me outta here!"
user_choice_1 = raw_input("->")
で生の入力をしながら、私は、この生の入力のためのいくつかのライブラリをインポートしなければならないのは、私はエラーを取得しています。このラインでphycharm私は取得していますエラー
if user_choice_1 == '1':
print
"Loading nooses, murderers, rapists, thiefs, lunatics..."
self.start_game()
elif user_choice_1 == '2':
print
"Bye bye now..."
exit()
else:
print
"I'm sorry, I'm hard of hearing, could you repeat that?"
self.__init__()
具体的にはどんなエラーがありますか? – Kevin
エラーを含むことに加えて、なぜ 'print'とテキストが異なる行にあるのですか?これを簡単にテストすると、空行が表示され、文字列は無視されます。コメントを書くために '#'を使うと、あなたのコード編集がうまくいきません。 – roganjosh
esses) 印刷 "進行:" + self.progress_updater(推測、the_word、進捗状況) 印刷 "使用の手紙:" + letters_used –