Я не могу, кажется, pydoc raw_input в терминале (Windows) - PullRequest
0 голосов
/ 31 января 2019

Я новичок в программировании и использую Windows и Python2.7.

Я пытался запустить python -m pydoc raw_input в терминале, но он говорит:

'more' is not recognized as an internal or external command, operable program or batch file.

Чтоя делаю неправильно?

1 Ответ

0 голосов
/ 03 февраля 2019

Должно работать:

Microsoft Windows [Version 10.0.17134.523]
(c) 2018 Microsoft Corporation. All rights reserved.

c:\srv> python -m pydoc raw_input
Help on built-in function raw_input in module __builtin__:

raw_input(...)
    raw_input([prompt]) -> string

    Read a string from standard input.  The trailing newline is stripped.
    If the user hits EOF (Unix: Ctl-D, Windows: Ctl-Z+Return), raise EOFError.
    On Unix, GNU readline is used if enabled.  The prompt string, if given,
    is printed without a trailing newline before reading.

more.com живет в c:\windows\system32\more.com, поэтому убедитесь, что ваш путь содержит каталог system32 ..

...