huim
import simplejson

a = """{"a":"\\""}"""
b = """{"a":"\\\'"}"""
print simplejson.loads(a)
print simplejson.loads(b)

输出:
{\'a\': \'"\'}
simplejson.errors.JSONDecodeError: Invalid \X escape sequence \'\\\': line 1 column 7 (char 6)

分类:

技术点:

相关文章:

  • 2021-05-26
  • 2021-12-31
  • 2021-11-04
  • 2021-11-04
  • 2021-12-01
  • 2021-10-27
  • 2021-11-04
猜你喜欢
  • 2021-07-31
  • 2021-12-31
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案