创建页面,内容为“一个 Python 标准库,通过 Python 代码操作 SQLite 数据库。 [https://docs.python.org/3/library/sqlite3.html# sqlite3 — DB-API 2.0 interface for SQLite databases — Python 3.13.1 documentation] == 另请参阅 == [https://www.runoob.com/sqlite/sqlite-python.html SQLite – Python | 菜鸟教程] 分类:Python 库
 
无编辑摘要
 
第2行: 第2行:


[https://docs.python.org/3/library/sqlite3.html# sqlite3 — DB-API 2.0 interface for SQLite databases — Python 3.13.1 documentation]
[https://docs.python.org/3/library/sqlite3.html# sqlite3 — DB-API 2.0 interface for SQLite databases — Python 3.13.1 documentation]
== 使用 ==
<syntaxhighlight lang="python3">
import sqlite3
con = sqlite3.connect("wiki.db")
</syntaxhighlight>


== 另请参阅 ==
== 另请参阅 ==
[https://www.runoob.com/sqlite/sqlite-python.html SQLite – Python | 菜鸟教程]
[https://www.runoob.com/sqlite/sqlite-python.html SQLite – Python | 菜鸟教程]
[[分类:Python 库]]
[[分类:Python 库]]

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 | 菜鸟教程