如果出现cannot import secure_filename把from werkzeug 改为from werkzeug.utils即可如果改完出现cannot import name ‘FileStorage’将其分两行写:from werkzeug.utils import secure_filenamefrom werkzeug.datastructures import FileStorage
FileStorage在werkzeug.datastructures 下面