摘要: TypeError: 'CommandCursor' object is not subscriptable 我用的是pymongo 查询出来数据然后报这个错误 查询了消息发现查询出来的数据类型是commandcursor 不能带有 于是去掉 注意:后面的数组操作也要更换需要转换成list具体可以看 阅读全文
posted @ 2018-06-11 13:27 ontoweb-zp 阅读(2382) 评论(0) 推荐(0) 编辑