79500393

Date: 2025-03-11 10:26:09
Score: 0.5
Natty:
Report link

From shelve documentation, i can see use Shelf.close() if you want to close a shelf; use flag='r' ensures read-only mode and flag='c' allows creation if it doesn't exist. Other flag modes are w open an existing shelf; n always create a new, empty shelf, open for reading and writing.

https://docs.python.org/3/library/shelve.html

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Coco Q.