gpt4 book ai didi

python - python有 'man'吗?

转载 作者:太空狗 更新时间:2023-10-29 19:32:28 25 4
gpt4 key购买 nike

我想知道是否有像“man.py”这样专用于 Python 的 CLI?

例如,

man.py os.system
> system(command) -> exit_status
>
> Execute the command (a string) in a subshell.

最佳答案

pydoc 模块提供了它:

$ python -m pydoc os.system
Help on built-in function system in os:

os.system = system(...)
system(command) -> exit_status

Execute the command (a string) in a subshell.
$

关于python - python有 'man'吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10962160/

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