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

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

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

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

**正确**```{"123":"123","234":"234"}
posted @ 2016-10-20 16:38  紫金龙骑  阅读(5272)  评论(0编辑  收藏  举报
UV PV