ITeye博客

python把帮助导出到文件当中

54yuri · 2013-01-14 18:16 · python · 编程语言 · Python · Markdown

有时候在python 当中使用

import xxx

help(xxx)

太麻烦,

python -c "import xxx;help(xxx);" > /tmp/1.txt

or

python -c "import xxx;help(xxx.yyy)" > /tmp/2.txt

导出成文本之后,可以比较方便的搜索以及复制粘贴出来

爽吧?

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。