Python 无法在 ```help(<module>)``` 中显示模块的文档字符串,表示它无法识别该模块

问题描述 投票:0回答:1

Python 在

help(...)
中呈现函数的文档字符串,但未能呈现定义函数的模块的文档字符串。

python docstring
1个回答
0
投票

我用

import <module name> as <other name>
导入模块并使用
help(<module name>)
。一切都很好,问题解决了。

© www.soinside.com 2019 - 2024. All rights reserved.