标签: python flask
我想将列表作为URL参数传递
@app.route('/getdata',defaults ={'my_list':['a','b']}, methods=['GET']) @app.route('/getdata/<my_list>', methods=['GET']) def getdata(my_list): pass
运行时出现此错误
TypeError: 'Response' object is not iterable