|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在IDLE中输入print(help(input))运行后
Shell中会显示
Help on built-in function input in module builtins:
input(...)
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.
None
这个在Shell中可以显示但是结尾多了个NONE。
但是在Python原始黑框程序中无法运行
提示如下:
‘more’不是内部或者外部命令,也不是可运行的程序或批处理文件。
None
相同的我如果输入print(dir(__builtins__)),Shell中和原始程序黑框运行也会正常显示并没有None
求解,是针对input是不能print(help(input))这样用吗?
h elp没有返回值,你print那就是none
这有啥可问的
|
|