Intelligent-Traffic-Based-On-CV icon indicating copy to clipboard operation
Intelligent-Traffic-Based-On-CV copied to clipboard

server返回结果解析bug

Open thunderbird0902 opened this issue 3 years ago • 0 comments

你好,我在运行程序的过程中遇到一个问题,麻烦您有时间看一下 image

在 client中解析server的返回结果过程中,data有时候会包含多个结果,如上图所示

主要代码是下面这里,在json.loads这里解析是会报错,不知道您当时有没有遇到这个问题 data = connection.recv(1024)

print("if duse...")

if data: result_json = data.decode() result_dict = json.loads(result_json)

thunderbird0902 avatar Jun 22 '21 15:06 thunderbird0902