Flask 注釋

2021-08-10 10:57 更新

注釋的規(guī)則和文檔注釋類似。兩者都使用 reStructuredText 格式。如果一個(gè) 注釋被用于一個(gè)屬性的文檔,在起始的井號(hào)( # )后加一個(gè)冒號(hào):

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)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)