📜  选择字段烧瓶 wtf - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:04.978000             🧑  作者: Mango

代码示例1
HOUR_CHOICES = [('1', '8am'), ('2', '10am')]

class TestForm(Form):
     hour = SelectField(u'Hour', choices=HOUR_CHOICES)