0
点赞
收藏
分享

微信扫一扫

How to Create a .db File in Python With Sqlite3

代码小姐 2022-09-06 阅读 56


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.

举报

相关推荐

0 条评论