Last active
August 13, 2019 06:28
-
-
Save lawrencechen0921/7683b26a71a6b05d7b6b29185eedcfdd to your computer and use it in GitHub Desktop.
寫程式直接產生QR Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#必須先把套件 PyQRcode 下載下來 pip install PyQRcode | |
#若要轉換成圖片 也必須下載模組 PyPNG pip install pypng | |
import pyqrcode | |
url=pycode. QRcode('自己要的網站') | |
url.png('url2.png',scale=2) | |
url.png('url3.png',scale=3) | |
#可以試著用用看歐 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment