python

您所在的位置:网站首页 jsondecodeerror接口报错 python

python

2024-07-12 04:51| 来源: 网络整理| 查看: 265

我已经按原样尝试了您的源代码和可见的 JSON 数据,它运行时完全没有问题。

我建议以二进制形式检查文件的内容,例如通过使用诸如hexdump之类的实用程序来查看它是如何开始的:

$ hexdump data.txt 0000000 0a7b 2020 2020 6422 7461 2261 203a 5b20 0000010 200a 2020 2020 2020 2020 2020 2020 2020 0000020 2020 0a7b 2020 2020 2020 2020 2020 2020 ...

或使用file实用程序检查以下帖子中描述的编码:https ://unix.stackexchange.com/questions/11602/how-can-i-test-the-encoding-of-a-text-file-is-它有效,它是什么



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3