有两种方法可以在代码本身中记录模块、函数或类: comments 和 docstrings .
comments
docstrings
Docstrings help() 函数,而 评论 只能在源代码中访问。
Docstrings
help()
评论
文档字符串 ?
文档字符串
docstring是用来解释函数 ,从用户的角度看,它接受和返回的值的类型。
怎样 它做它该做的。