1、安装扩展包
pip install Flask-WTF
2、导入安装包
from flask_wtf.csrf import CSRFProtect
3、把app传进去保护起来
CSRFProtect(app)