python利用elaphe制作二维条形码实现代码

WBOY
Release: 2016-06-16 08:47:02
Original
1188 people have browsed it

手机上的二维码识别程序已经做的很好了,“我查查”用起来很不错的

我搜集了几个二维条码生成网站:

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

http://qrencode.sinaapp.com/

http://www.mayacode.com/

作为一个程序猿,我们也要懂得如何制作二维条形码

python的elaphe模块帮我们解决了问题

复制代码 代码如下:

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)

用python,一切变得那么简单!
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template