今天,我要带着大家来生成一个二维码。
首先,我们得下载qrcode这个第三方库:
pip install qrcode
现在,我们就能开始生成啦!
import qrcode img = qrcode.make('内容/链接') img.save('文件名.png')
现在看看我生成的: