学堂 学堂 学堂公众号手机端

How to Create a .db File in Python With Sqlite3

lewis 1年前 (2024-04-13) 阅读数 11 #技术


How to create a .db file in Python with sqlite3?Actually It’s really easy.
Run the following code




1
2
import sqlite3sqlite3.connect('./test.db')

After running the above code,the test.db file will be created if it does not exist.
Of course,you have the proper permission to create the file.

版权声明

本文仅代表作者观点,不代表博信信息网立场。

热门