编写py文件时,无法补全,在app对象后面添加:# type:Flask

from flask import Flask, flash, render_template, request
app = Flask(__name__)  # type:Flask

that's all

相关文章: