Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/331.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何从help()函数中获取_new__的正确签名?_Python_Documentation_Signature - Fatal编程技术网

Python 如何从help()函数中获取_new__的正确签名?

Python 如何从help()函数中获取_new__的正确签名?,python,documentation,signature,Python,Documentation,Signature,我在解释器中尝试了以下方法(命令行模式?不知道该怎么称呼它) 请注意,为\uuuuu new\uuuuu提供的签名为: | | __new__(*args, **kwargs) from builtins.type | Create and return a new object. See help(type) for accurate signature. | 太没用了!我怎样才能得到真正的签名 help(“”)应该为内置的string类提供帮助,但这也不起作用,它

我在解释器中尝试了以下方法(命令行模式?不知道该怎么称呼它)

请注意,为
\uuuuu new\uuuuu
提供的签名为:

 |  
 |  __new__(*args, **kwargs) from builtins.type
 |      Create and return a new object.  See help(type) for accurate signature.
 |
太没用了!我怎样才能得到真正的签名

help(“”)
应该为内置的string类提供帮助,但这也不起作用,它不显示任何有用的内容,而不执行任何操作

当我不看的时候,内置的帮助功能是否被贬低了?我正在ubuntu上使用Python 3.6.8。它没有我记忆中那么有用

 |  
 |  __new__(*args, **kwargs) from builtins.type
 |      Create and return a new object.  See help(type) for accurate signature.
 |