Excel data write error: ValueError: Can not convert { 'code': 0, 'msg': 'login success!', 'Username': 'test',} to Excel

Today in the test results are written back to the excel table to json format when being given, ValueError: Can not convert { 'code': 0, 'msg': 'login success!', 'Username': 'test',} to Excel, can not be converted to excel

Cause: excel only support string format into the data json format is not supported.

Solve: str coerced into a string:

Guess you like

Origin www.cnblogs.com/xiamaojjie/p/12148163.html
Recommended