📜  flask wtforms 多选 - Python 代码示例

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

代码示例1
from wtforms import SelectMultipleField

language = SelectMultipleField('Programming Language', 
                               choices=[
                                 ('cpp', 'C++'), 
                                 ('py', 'Python'), 
                                 ('text', 'Plain Text')
                               ])