https://blog.csdn.net/hello_dear_you/article/details/81205778
1. 介绍
The pyqrcode module is a QR code generator that is simple to use and written in pure python.
2. 安装
pip install pyqrcode
3. 简单演示代码
import pyqrcode # a simple example of creating a QR code for a URL url = pyqrcode.create("http://uca.edu") # svg格式 url.svg("uca-url.svg", scale=8) # EPS格式 url.eps("uca-url.eps", scale=2) # terminal输出 print(url.terminal(quiet_zone=1))
输出:
生成图片二维码:
https://blog.csdn.net/jy692405180/article/details/65937077
原文地址:https://www.cnblogs.com/andy9468/p/10308262.html
时间: 2024-10-11 09:07:07