python把帮助导出到文件当中

有时候在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



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

爽吧?

你可能感兴趣的:(python)