2015年3月5日
摘要: 创建函数记录函数,在函数的开头写下字符串,它就会作为函数的一部分进行存储,这称为文档字符串,如def square(x): 'Caculates the square of the number x.' return x*x>>> square.__doc__'Caculates the... 阅读全文
posted @ 2015-03-05 17:39 浅塘半亩 阅读(224) 评论(0) 推荐(0) 编辑