码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2016-03-31 23:04:22      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:

 

>>> 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
>>>

 

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

标签:

原文地址:http://www.cnblogs.com/quant-lee/p/5343095.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!