列出模块中的函数
>>>import math
>>>dir(math)
help()
帮助文档
打印文档字符串
>>>print(math.tanh.__doc__)
tanh(x)
Return the hyperbolic tangent of x.
列出模块中的函数
>>>import math
>>>dir(math)
help()
帮助文档
打印文档字符串
>>>print(math.tanh.__doc__)
tanh(x)
Return the hyperbolic tangent of x.