I have a Python module installed on my system and I'd like to be able to see what functions/classes/methods are available in it.
I want to call the help
function on each one. In Ruby I can do something like ClassName.methods
to get a list of all the methods available on that class. Is there something similar in Python?
eg. something like:
from somemodule import foo
print(foo.methods) # or whatever is the correct method to call
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…