import qrcode |
qr = qrcode.QRCode( |
version = 7 , |
error_correction = qrcode.constants.ERROR_CORRECT_L, |
box_size = 10 , |
border = 4 |
) |
qr.add_data( "https://yuncode.net/python-tech" ) |
qr.make(fit = True ) |
qr.make_image().save( "test.png" ) |