/
ilya.petrash
/
SimplePyScripts
Обзор
Документация
Войти
/
ilya.petrash
/
SimplePyScripts
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
qrcode/pyqrcode__examples/db_sqlite3.py
22 строки
436 B
gil9red
Moved
04 июн 2023, 13:57
04 июн 2023, 13:57
63a992e
Код
Авторство
О чём код?
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import sqlite3 # pip install pyqrcode # pip install pypng import pyqrcode with sqlite3.connect(":memory:") as connect: items = connect.execute("SELECT 'Version: ' || sqlite_version(), date()").fetchone() print(items) # ('Version: 3.29.0', '2020-07-20') text = "\n".join(items) qr_code = pyqrcode.create(text) qr_code.png("sqlite3.png", scale=6)