i am introducing myself in the pylibnet library, I want to ask you how i can get the constants imported in this code.
import libnet
from libnet.constants import *
I try help(libnet) but there are nor any answers to my problem.
Thank you!!
Have you tried dir(libnet.constants)
?
Also libnet.constants.__dict__
should work.
To cut down on the noise a bit you could do
[x for x in libnet.constants.__dict__ if x[:2] != '__' and not callable(libnet.constants.__dict__[x])]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.