search

Home  >  Q&A  >  body text

python - pymongo Do you need to close manually?

Do you need to close pymongo manually?

typechotypecho2724 days ago1092

reply all(3)I'll reply

  • 迷茫

    迷茫2017-06-16 09:21:09

    Although it is not a mandatory requirement, because it will naturally be released when the program exits. However, it is still strongly recommended to close after use or use context management syntax to avoid unnecessary errors

    reply
    0
  • Cancelreply