0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PythonでQRコードを作ってみる

Last updated at Posted at 2019-12-31

まず最初に qrcode モジュールをインストールします。

pip install qrcode

後は、こんな感じです。

import qrcode

file_name = 'qr_cede.png'
qr_data = 'QRコードに埋め込まれる文字列でーす'
image = qrcode.make(qr_data)

image.save(file_name)
print('ファイル名 : ', file_name)
print('データ : ', qr_data)
print('QRコードを生成しました。')
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?