Files
tldr/pages.zh/common/pydoc.md

16 lines
370 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pydoc
> 显示离线 Python 文档。
> 更多信息:<https://docs.python.org/3/library/pydoc.html>。
- 打印某个主题Python 关键字、主题、函数、模块、包等)的文档:
`pydoc {{subject}}`
- 在一个任意未使用的端口上启动 HTTP 服务器,并打开一个 [b]浏览器以查看文档:
`pydoc -b`
- 显示帮助:
`pydoc`