查看python中SQLite版本和sqlite3版本

python使用sqlite3模块集成了SQLite数据库,其中SQLite版本和sqlite3版本是不同的信息,用前心中有数还是有必要的。
以python 3.7.1为例:

import sqlite3
print(sqlite3.version_info) #显示sqlite3版本信息
print(sqlite3.sqlite_version) #显示SQLite版本信息

  

运行后

(2, 6, 0)
3.21.0

  

posted @ 2021-04-20 09:11  JIMfan  阅读(1145)  评论(0编辑  收藏  举报