gpt4 book ai didi

python - 我似乎无法在终端(Windows)中对 raw_input 进行 pydoc

转载 作者:太空宇宙 更新时间:2023-11-03 21:18:56 25 4
gpt4 key购买 nike

我是编程新手,我使用的是 Windows 和 Python2.7。

我尝试在终端中运行python -m pydoc raw_input,但它显示:

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

我做错了什么?

最佳答案

它应该有效:

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 目录。 .

关于python - 我似乎无法在终端(Windows)中对 raw_input 进行 pydoc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54462902/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com