在终端中阅读 python 文档? [英] Reading python documentation in the terminal?
本文介绍了在终端中阅读 python 文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法安装 python 文档,使其像联机帮助页一样可用?(我知道你可以下载文档的源文件并在 vim 中阅读它们,使用 less 或其他什么,但我正在考虑一些不那么手动的东西.不想自己动手.)
Is there a way to install the python documentation that would make it available as if it was a manpage? (I know you can download the sourcefiles for the documentation and read them in vim, using less or whatever but I was thinking about something a bit less manual. Don't want to roll my own.)
推荐答案
在 Debian(和衍生发行版,如 Ubuntu)上安装 pydoc
包.然后你就可以使用 pydoc nothing
命令了.
On Debian (and derived distributions, like Ubuntu) install pydoc
package. Then you can use pydoc whatever
command.
这篇关于在终端中阅读 python 文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文