擱置的示例程式碼
要擱置物件,首先匯入模組,然後按如下方式分配物件值:
import shelve
database = shelve.open(filename.suffix)
object = Object()
database['key'] = object
要擱置物件,首先匯入模組,然後按如下方式分配物件值:
import shelve
database = shelve.open(filename.suffix)
object = Object()
database['key'] = object