📜  烧瓶示例 - Python 代码示例

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

代码示例5
class PostForm(FlaskForm): 
    title = StringField('Title', validators=[DataRequired()]) 
    content = TextAreaField('Content', validators=[DataRequired()]) 
                      validators=[DataRequired(), Length(min=2, max=50)])
    submit = SubmitField('Post')