qrcode

将字符序列制作成二维码

pip install qrcode

1
2
3
4
5
6
7
8
9
10
11
12
13
import os
import qrcode
from tabulate import tabulate

os.chdir("D:/")

qrcode.make("https://python123.io").save("python123.png")

qrcode.make("Python语言开创事业").save("python.png")

qrcode.make(tabulate(data, headers=hdls, tablefmt="html")).save("datahtml.png")

qrcode.make(tabulate(td)).save("data.png")