编写 Python 文档字符串的首选方法是什么?
"""或者"
在 Dive Into Python一书中,作者提供了以下示例:
def buildConnectionString(params):
    """Build a connection string from a dictionary of parameters.
    Returns string."""
在另一章中,作者提供了另一个例子:
def stripnulls(data):
    "strip whitespace and nulls"
    return data.replace("\00", "").strip()
两种语法都有效。对我来说唯一的区别是它"""允许我们编写多行文档。
除此之外还有什么不同吗?