Python学习笔记#函数中使用文档,让你的函数更容易理解

>>> def intadd(a,b):
'this is a test of the doc of function'
return a+b

>>> intadd(2,3)
5
>>> intadd.__doc__
'this is a test of the doc of function'
>>>
原文地址:https://www.cnblogs.com/quant-lee/p/5343095.html