TypeError: sequence item 0: expected str instance, dict found 类型错误
2019-03-10 23:29
537 查看
工作中有一条数据一致放不到MySQL中,我看之前的格式存储是列表包裹着字典[{}],我的列表有数据,但是就是放不到数据库中,而且还报错了!!!
期待一个字符串,不是字典,很简单,转化成json格式就行
json.dumps(data)
相关文章推荐
- python list转换字符串报错TypeError: sequence item 0: expected str instance, int found
- TypeError: sequence item 0: expected str instance, int found
- python list转换字符串报错TypeError: sequence item 0: expected str instance, int found
- TypeError: sequence item 0: expected str instance, int found的解决办法
- python错误: TypeError: the JSON object must be str, bytes or bytearray, not 'dict'解决办法
- Android错误-error:Foundtext""whereitemtagisexpected
- Android错误-error:Foundtext""whereitemtagisexpected的解决方法
- Android错误-error: Found text " " where item tag is expected
- python write()参数错误,导致报错TypeError: a bytes-like object is required, not 'str'
- Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
- [Quixote]上传时错误TypeError: coercing to Unicode: need string or buffer, htmltext found
- python错误: TypeError:'dict' object is not callable
- ubuntu android studio 编译及运行错误Error retrieving parent for item: No resource found that matches the given name
- 安卓AS打包项目出现错误-【Android】Error: Expected resource of type styleable [ResourceType]
- Python 3.5 Socket TypeError: a bytes-like object is required, not 'str' 错误提示
- Android Studio打包错误Error:Error: Expected resource of type id [ResourceType]
- Theme主题错误:Error retrieving parent for item: No resource found that matche 分类: Android安装及配置 2014-06-22 18:46 171人阅读 评论(0) 收藏
- 错误 Error: Expected resource of type id [ResourceTyp]
- django 接受post请求json.dumps()的时候会引发TypeError: 'expected string or buffer'错误
- Python笔记002——错误TypeError: 'str' does not support the buffer interface