ValueError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

这个错误是由于json.loads()接受的参数并不是直接的一个字典,而需要固定格式的。 引号必须为双引号。单引号不行

例如:
错误```{123:123,234:234}

**正确**```{"123":"123","234":"234"}

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2021-09-24
  • 2021-08-23
  • 2021-07-11
  • 2021-04-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
相关资源
相似解决方案