📜  烧瓶形式 - Python 代码示例

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

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