We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
使用QRCode模块
下面的代码将使给定字符串的QR码并将其保存为图像。
如果未安装模块,则可以使用pip命令安装它:
注意
CSV文件仅存储文本,您可以单独保存图像,并将其名称存储在列B中。如果您想在Excel中执行此操作,Excel不会将图像存储在给定的单元格中。它与细胞无关,可以占据多个细胞。因此,最好的方法是将图像存储在单独的文件中(使用单独的目录)并将其名称存储在CSV中。
Use qrcode Module
The code below will make the QR code of the given string and will save it as an image.
If the module is not installed, you can install it using the pip command:
Note
The CSV file just stores text, you can save images, separately and store their names in column B. If you want to do it in excel, Excel does not store images within the given cell. It is not related to cells and can occupy multiple cells. So, the best method is to store the images in the separate file (withing separate directory) and store their names within csv.