サードパーティモジュールのPythonのドキュメントを読みます
-
19-09-2019 - |
質問
私は最近、IMDbpyモジュールをダウンロードしました。.. 私が行うと、
import imdb
help(imdb)
私は完全なドキュメントを取得いけない..私がしなければならない。
im = imdb.IMDb()
help(im)
利用可能な方法を確認してください。私は、このコンソールインターフェイスを好みません。ドキュメントを読んで、任意のより良い方法はあります。私は、1ページ内のモジュールIMDBに関連するすべてのドキュメントを意味する。の。
解決
を使用 pydocする
pydoc -w imdb
この同じディレクトリにimdb.htmlを生成します。
<時間> pydoc -p 9090
は、ポート9090上でHTTPサーバを起動します、とあなたはでhttpすべてのドキュメントを閲覧することができるようになります:// localhostを:9090 / の
他のヒント
で IPython にあなたが行うことができます。
[1]: import os
[2]: os?
< get the full documentation here >
# or you could do it on specific functions
[3]: os.uname
<built-in function>
[4]: os.uname?
< get the full documentation here >
# Incase of modules written in python, you could inspect source code by doing
[5]: import string
[6]: string??
< hows the source code of the module >
[7]: string.upper??
< shows the source code of the function >
所属していません StackOverflow