Location-based array modification in mongodb

  mongodb, question
 {    "_id":"djsofjwo"
 "comment":"good post",
 "comment":"I thought it is too short"

This is a revision of comments with position 0 in comments array in the shell environment, adding one to the vote. How to use python code to achieve the same function under pymongo?**

//you can use update_one
 from pymongo import MongoClient
 client = MongoClient()
 db = client.test