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.
私は pylibnet ライブラリで自己紹介をしています。このコードにインポートされた定数を取得する方法をお尋ねしたいと思います。
import libnet from libnet.constants import *
help(libnet) を試しましたが、問題に対する答えがありません。
ありがとうございました!!
試しましたdir(libnet.constants)か?
dir(libnet.constants)
また、libnet.constants.__dict__動作するはずです。
libnet.constants.__dict__
あなたができるノイズを少し減らすために
[x for x in libnet.constants.__dict__ if x[:2] != '__' and not callable(libnet.constants.__dict__[x])]