简体   繁体   中英

dbm package: file is not a database on open with SQLITE viewer

I made a database with the Python package dbm but I cannot seem to find any way to open it. The file is recognizable for reading and writing but when I try to open it visually using SQLITE viewer, it gives back: "An error occurred: file is not a database". Here is how I open and write one thing but I cannot view it with a VS code extension:

with dbm.open('cache', 'c') as db:
    db['www.python.org'] = 'Python Website'

The dbm package is NOT SQLite. The SQLite package is called "sqlite3"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM