Flask 注釋

2021-08-10 10:57 更新

注釋的規(guī)則和文檔注釋類似。兩者都使用 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)
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號