文章 2024-01-18 来自:开发者社区

TypeError the JSON object must be str, bytes or bytearray, not ‘list‘

在使用python的jason库时,偶然碰到以下问题TypeError: the JSON object must be str, bytes or bytearray, not ‘list’通过如下代码可复现问题>>> a [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> import json >>> ra = jso....

问答 2023-06-07 来自:开发者社区

the JSON object must be str, bytes or bytearray, n

the JSON object must be str, bytes or bytearray, not 'dict'" 提示我这一句报错 evt = json.loads(event) 代码里加application/json了

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注