Python uses Elaphe to create a two-dimensional Barcode

Source: Internet
Author: User

The Application of bar code will become more and more extensive.Article(Http://www.systron.com.cn/txm-7.htm), write well! You can use your mobile phone to take a QR code. It is really nice to check the QR code! This will become a trend!

QR code identification on mobile phonesProgramI have done a good job, and "I checked" is very useful.

I have collected several two-dimensional code 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 create two-dimensional code codes.

The Elaphe module of Python 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 = ' 8 bits ' )
A. Show ()
If _ Name __ = ' _ Main __ ' :
Info = raw_input ( " Input a string: " )

Get_barcode (Info)

With python, everything becomes so simple!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.