Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
リスト内のURLを一気にQR化するためのスクリプト
# -*- coding: utf-8 -*-
import sys
import qrcode
# QRコードを作る場合
URLarray = ['http://google.com','http://yahoo.co.jp']
for i, URL in enumerate(URLarray):
img = qrcode.make(URL) # ''内の文字をQRコードに変換
img.save('qr_img' + str(i) + '.png') # QRコードに名前をつけて保存
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.