__doc__方法

__doc__方法是python的内置方法之一,该方法一般会输出指定对象中的注释部分。 NB(注意): # 后面的部分表示输出结果 代码以下:python class Debug: """ This is a class for debugging """ def __init__(self): """ This funtion only has one property
相关文章
相关标签/搜索