bugs & debugs - QLGQ/learning-python GitHub Wiki
1.类型错误
...
pagesize = request.query_args.get('pagesize')[0]
pagenumber = request.query_args.get('pagenumber')[0]
...
.offset(pagenumber*pagesize)\
...
TypeError: can't multiply sequence by non-int of type 'unicode'
解决方法:根据报错可知是序列的类型错误,改为整型即可!
pagesize = int(request.query_args.get('pagesize')[0])
pagenumber = int(request.query_args.get('pagenumber')[0])