当Mongodb插入数据出现TypeError: ‘Collection’ object is not callable. If you meant to call the ‘insert’ method on a ‘Collection’ object it is failing because no such method exists.错误时
只需要把insert改为insert_many即可解决问题
当Mongodb插入数据出现TypeError: ‘Collection’ object is not callable. If you meant to call the ‘insert’ method on a ‘Collection’ object it is failing because no such method exists.错误时
只需要把insert改为insert_many即可解决问题