1.python代码问题:TypeError: 'list' object is not callable
@message_page.route('/message_list')
defmessage_list():
uid= request.args.get('uid')
city= request.args.get('uid')
return['1','2']
原因:return的list格式不对
解决:
@message_page.route('/message_list')
defmessage_list():
uid= request.args.get('uid')
city= request.args.get('uid')
return '123'
2.syntaxError:JSON Parse error:Single quotes
原因:json格式不对
解决:单引号改成双引号
网友评论