litecounter:只是数数

时间:2021-02-09 13:41:49
【文件属性】:
文件名称:litecounter:只是数数
文件大小:6KB
文件格式:ZIP
更新时间:2021-02-09 13:41:49
Python 精简版 在SQLite上实现的非常简单的计数器 为什么? 您可以使用它来实现持久计数器。 当计数器在键上启动时,它还使用一些SQLite语法将键初始化为0 ,就像您有一个collections.defaultdict ,默认值为0 。 安装 pip install litecounter 重要说明:该软件包使用SQLite的语句,因此它至少需要与SQLite版本3.24.0(2018-06-04发布)一起运行。 如果您需要运行最新版本,则可以使用并覆盖sqlite3 import pysqlite3 # pre-built if you install pysqlite3-binary import sys sys . modules [ 'sqlite3' ] = pysqlite3 在近期发行版中,您将能够使用连接而不是仅使用数据库名称来创建计数器,因此您无需全局覆盖sqlit
【文件预览】:
litecounter-main
----tests.ipynb(3KB)
----.github()
--------workflows()
----litecounter.py(3KB)
----LICENSE(1KB)
----setup.py(758B)
----README.md(3KB)

网友评论