pydoc 是在安装python时安装的实用程序。它允许您从shell中快速检索和搜索文档。例如,如果需要快速刷新 time 模块,提取文档非常简单:
$ pydoctime
上面的命令实质上相当于打开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.