pymongo replace_one 更新数据

stat.replace_one(

    {"city":ct,"region":rl,"district_name":lk,"date":date},

    {"city":ct,"region":rl,"district_name":lk,
                     "index":mm, "date":date,"time":timm},True
    )

posted @ 2022-08-19 22:59  luoganttcc  阅读(29)  评论(0编辑  收藏  举报