В Python 2.6, когда я пробую этот код:
print 'This is a simple game.'
input('Press enter to continue . . .')
print 'Choose an option:'
...
и просто нажмите Enter в командной строке, я получаю следующую ошибку:
Traceback (most recent call last):
File "E:/4.Python/temp.py", line 2, in
input('Press enter to continue . . .')
File "", line 0
^
SyntaxError: unexpected EOF while parsing
Подробнее здесь: https://stackoverflow.com/questions/502 ... ress-enter
Мобильная версия