注释的规则和文档注释类似。两者都使用 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)
作者:唐伯虎点蚊香,如若转载,请注明出处:https://www.web176.com/flask2/21596.html