标签: python python-3.x flask
就我而言,我想传递数据。示例:#topic_today,网址为/get-detail/topic/<topic>
#topic_today
/get-detail/topic/<topic>
但是,在url响应中有错误的请求。网址中无法读取字符#。
#
我的代码:
我的路线:@app.route('/get-detail/topic/<topic>')
@app.route('/get-detail/topic/<topic>')
示例访问权限:<a href="/get-detail/topic/#topic_today">#topic_today</a>
<a href="/get-detail/topic/#topic_today">#topic_today</a>