生成的 QR 代码

This commit is contained in:
YuCheng Hu
2021-03-19 00:31:24 -04:00
parent 4b4e68d22d
commit 09aa64ed21
+15
View File
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Python QR Code Generator
# Author - HoneyMoose(huyuchengus@gmail.com)
# Link Article - https://www.ossez.com/c/open-source/python/14
import qrcode.image.svg
image_path = "resources/token_qr.png"
qr_string = "https://www.ossez.com/c/open-source/python/14"
print(qr_string)
img = qrcode.make(qr_string)
img.save(image_path)