mongodb 导出数据到excel中出现问题 too many positional arguments:

这个问题应该就是你要导出的域中出现了空格,也就是你的某些属性名有空格。

所以导出的时候去掉空格就OK了。