'''This is My own Module
Date:2011-09-07
Author:Chris Mao
This is description information'''
class TestClass:
'''This is TestClass' DocStrings'''
def func1():
'''this is func1's DocStrings'''
pass
def func2():
'''this is func2'''
print "this is func2"
print func2.__doc__
查看更多关于Python随笔之文档字符串(DocStrings)的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did86522