[Solution found!] PyMongo的第三个参数update()是upsert且必须传递一个布尔值,而不是字典。将您的代码更改为: self.word_counts[source].update({'date':posttime}, ...
確定! 回上一頁