意见箱
恒创运营部门将仔细参阅您的意见和建议,必要时将通过预留邮箱与您保持联络。感谢您的支持!
意见/建议
提交建议

How to Create a .db File in Python With Sqlite3

来源:恒创科技 编辑:恒创科技编辑部
2024-01-26 19:49:59


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



How to Create a .db File in Python With Sqlite3


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.

上一篇: PHP程序运行Python脚本 下一篇: 手机怎么远程登录云服务器?