Python USES elaphe to make 2d barcode implementation code

  • 2020-04-02 09:41:00
  • OfStack

The qr code recognition program on the mobile phone has been done very well, "I check" is very good to use

I have collected several 2d barcode generation websites:

http://www.morovia.com/free-online-barcode-generator/qrcode-maker.php

http://qrencode.sinaapp.com/

http://www.mayacode.com/

As a programmer, we also need to know how to make 2d bar codes, right

Python's elaphe module helps us solve the problem
 
from elaphe import barcode 
def get_barcode(info): 
a = barcode('qrcode',info,options=dict(version=9, eclevel='M'), margin=10, data_mode='8bits') 
a.show() 
if __name__=='__main__': 
info = raw_input("input a string: ") 
get_barcode(info) 

With python, everything is so simple!

Related articles: