db.collection.update(<filter>, <update>, <option>) UpdateOne $set: 更新_现有的数据,否则整条数据全部更新multi:条件_所有满足条件的文档 db.collection.UpdateOne({'xxx': xxx, 'xxx': xxx, ...过滤条件...}, {'$set': {'xxx': xxx, 'xxx': xxx, ...更新的信息...}, {multi: true, ...更新的条件...})