安装
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")
2021-07-17 00:58:13
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")