sqlite3

Ztm0929留言 | 贡献2025年1月13日 (一) 21:59的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

一个 Python 标准库,通过 Python 代码操作 SQLite 数据库。

sqlite3 — DB-API 2.0 interface for SQLite databases — Python 3.13.1 documentation

使用

import sqlite3

con = sqlite3.connect("wiki.db")

另请参阅

SQLite – Python | 菜鸟教程