JSON加载出错,修改为utf-8-sig解码后出现Expecting ',' delimiter: line 2 column 18 (char 19)错误
Opened this issue · 4 comments
dantepayne commented
liumy-lay commented
- "date": ["2023/6/17"], 在"date"键中,日期应该使用双引号括起来,否则它们将被解释为无法识别的标识符。
- "driver_path": "C:\Program Files\Google\Chrome\Application", 在"driver_path"键中,反斜杠字符需要进行转义,否则它们可能会被解释为转义序列。
HLakewind commented
whuLames commented
opsomteam2 commented
我的也是报了这个错误,只要将267行的内容改成with open('./config.json', 'r', encoding='utf-8-sig') as f:就可以