From 09aa64ed21a6518f042a13952ed83bb820850c3a Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Fri, 19 Mar 2021 00:31:24 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=20QR=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/QRCode.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/QRCode.py diff --git a/tests/QRCode.py b/tests/QRCode.py new file mode 100644 index 0000000..351cd5d --- /dev/null +++ b/tests/QRCode.py @@ -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) \ No newline at end of file From 957a970ea01c06d6483e8b4cc211ee05513f3e9d Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Fri, 19 Mar 2021 00:32:24 -0400 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20QR=20=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90=E8=84=9A=E6=9C=AC=E7=9A=84=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E6=96=87=E4=BB=B6=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/QRCode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/QRCode.py b/tests/QRCode.py index 351cd5d..d11b80c 100644 --- a/tests/QRCode.py +++ b/tests/QRCode.py @@ -2,7 +2,7 @@ # Python QR Code Generator # Author - HoneyMoose(huyuchengus@gmail.com) -# Link Article - https://www.ossez.com/c/open-source/python/14 +# Link Article - https://www.ossez.com/t/python-qr/13396 import qrcode.image.svg