representation format in web2py database
问题 db.define_table('person', Field('name'), format='%(name)s') What does this format do here? 回答1: The format argument is used to determine how fields in other tables that reference the 'person' table will be displayed. For example, if you define: db.define_table('dog', Field('name'), Field('owner', db.person) The 'owner' field is a reference field that references the 'person' table (i.e., it stores record id's of records from the 'person' table). In most cases, when you display data from the