Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
help()ページを文字列として変数に割り当てたい。例えば
help()
a = help("class") print a
これは可能ですか?どうすればそれを実行できますか?
ドキュメントを直接取得できます。
from pydoc_data import topics a = topics.topics['class'] print a
import pydoc a = pydoc.render_doc('class') print a