Skip to content

Instantly share code, notes, and snippets.

@lawrencechen0921
Last active August 13, 2019 06:28
Show Gist options
  • Save lawrencechen0921/7683b26a71a6b05d7b6b29185eedcfdd to your computer and use it in GitHub Desktop.
Save lawrencechen0921/7683b26a71a6b05d7b6b29185eedcfdd to your computer and use it in GitHub Desktop.
寫程式直接產生QR Code
#必須先把套件 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