Intelligent-Traffic-Based-On-CV
Intelligent-Traffic-Based-On-CV copied to clipboard
server返回结果解析bug
你好,我在运行程序的过程中遇到一个问题,麻烦您有时间看一下
在 client中解析server的返回结果过程中,data有时候会包含多个结果,如上图所示
主要代码是下面这里,在json.loads这里解析是会报错,不知道您当时有没有遇到这个问题 data = connection.recv(1024)
print("if duse...")
if data: result_json = data.decode() result_dict = json.loads(result_json)