codecamp

Flask 注释

注释的规则和文档注释类似。两者都使用 reStructuredText 格式。如果一个 注释被用于一个属性的文档,在起始的井号( # )后加一个冒号:

class User(object):
    #: the name of the user as unicode string
    name = Column(String)
    #: the sha1 hash of the password + inline salt
    pw_hash = Column(String)
Flask 文档注释
Flask 需求
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定