1.函数的调用
>>> def fun(one):
'''函数文档,进行说明的文档'''
print('The first doc')
return one
>>> fun('文档')
The first doc
'文档'
2.函数文档的调用
>>> def fun(one):
'''函数文档,进行说明的文档'''
print('The first doc')
return one
>>> fun.__doc__
'函数文档,进行说明的文档'
3.函数help的调用
>>> def fun(one):
'''函数文档,进行说明的文档'''
print('The first doc')
return one
>>> help(fun)
Help on function fun in module __main__:
fun(one)
函数文档,进行说明的文档