安装
pip install qrcode[pil]
pipy:https://pypi.org/project/qrcode/
github:https://github.com/lincolnloop/python-qrcode
代码示例
import qrcode img = qrcode.make('输入几个中文字符试试') img.show() img.save("code.png")
安装
pip install qrcode[pil]
pipy:https://pypi.org/project/qrcode/
github:https://github.com/lincolnloop/python-qrcode
代码示例
import qrcode img = qrcode.make('输入几个中文字符试试') img.show() img.save("code.png")