Python how to generate qrcode

2020-04-01 08:34发布

问题:

I'd like to generate a qr-code which will contain all informations concerning a user with django.

can you help me please....even with a link or a code...or with a github project ;)

thanks

回答1:

Have a look at qrcode library. It should be able to do everything you need.

Here's a code snippet to get started:

import qrcode

qr_image = qrcode.make('cullzie')
qr_image.save('user_data_qr.png')