pydoc 是一个在您安装 Python 时跟着安装的工具。它允许您在 shell 中快速检索和查找文档。比如,如果您需要对 time 模块的进行快速回顾,查看文档就是像下面这么简单:
$ pydoc time
上面的命令和打开 Python REPL 然后运行下面指令是基本等价的:
>>> help(time)
This opinionated guide exists to provide both novice and expert Python developers a best practice handbook to the installation, configuration, and usage of Python on a daily basis.
O'Reilly Book
This guide is now available in tangible book form!
All proceeds are being directly donated to the DjangoGirls organization.