from flask import Flask,render_template,request,redirect,Blueprint from newsB import news from yqB import yq from front import user from sysinfo import sysm app = Flask(__name__) app.secret_key='****----' urls=[news,yq,user,sysm] #将三个路由构建数组 for url in urls: app.register_blueprint(url) #将三个路由均实现蓝图注册到主app应用上 if __name__=='__main__': app.run(port=3002)