The return type must be a string,dict,tuple,Response instance,or WSGI callable,butit was aNamespace

flask中出现了这个错误搞得我一脸蒙蔽。卧槽

错误如下:

The return type must be a string,dict,tuple,Response instance,or WSGI callable,butit was aNamespace

这特么真不知道咋办了,也没注明哪里错了,卧槽。

后来我将其他依赖函数直接放到@app上面,客户端请求后的程序放在@app下面,意思就是数据一来我就开始处理了。

 

 

另外有相关问题可以加入QQ群讨论,不设微信群

QQ群:868373192 

语音图像视频深度-学习群