Flask 使用 Blueprint 整合路由 使用方法 /blueprint/route.py1 2 3 4 5route_bp = Blueprint('route', __name__, url_prefix='/route') @route_bp.route('/', methods=['PUT']) def create_route(): ... /app.py1 2app = Flask(__name__) app.register_blueprint(route_bp)