💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
无敌bottle怎么解页面重定向呢,还是一个函数:redirect 使用方法:return redirect(要重定向的页面路径) 下面给demo: ~~~ # coding:UTF-8 from bottle import Bottle, redirect app = Bottle() @app.get('/') def index(): return redirect("/abc") app.run(host="127.0.0.1", port=8000, reloader=True, debug=True) ~~~