Appearance
Pure python QR Code generator
pip install qrcode
import qrcode # 生成二维码 img = qrcode.make(data="你好") # 将二维码保存为图片 img.save('test.png') # with open('test.png', 'wb') as f: # img.save(f)
参考:Python生成二维码竟然只要一行代码