如果我有以下代码:
conn = sqlite3.connect('abc.db')
..abc.db如果它不存在,它将创建调用的数据库文件。如果我不想创建新文件并且只希望在文件已经存在的情况下连接成功,我该怎么办?
abc.db
python sqlite
python ×1
sqlite ×1