Python json.loads fails with `ValueError: Invalid control character at: line 1 column 33 (char 33)`

后端 未结 5 1419
时光取名叫无心
时光取名叫无心 2020-11-27 05:02

I have a string like this:

s = u\"\"\"{\"desc\": \"\\u73cd\\u54c1\\u7f51-\\u5168\\u7403\\u6f6e\\u6d41\\u5962\\u54c1\\u7f51\\u7edc\\u96f6\\u552e\\u5546 
5条回答
  •  清酒与你
    2020-11-27 05:38

    In some cases, this error will be raised when the file actually contains a string with a whitespace in it. Deleting the whitespace will solve the problem.

提交回复
热议问题