码迷,mamicode.com
首页 > 其他好文 > 详细

命令行二维码

时间:2019-01-23 13:03:06      阅读:239      评论:0      收藏:0      [点我收藏+]

标签:hello   sim   mod   生成   简单   介绍   one   ati   https   

https://blog.csdn.net/hello_dear_you/article/details/81205778

 

1. 介绍
The pyqrcode module is a QR code generator that is simple to use and written in pure python. 

2. 安装
   pip install pyqrcode

3. 简单演示代码

import pyqrcode
# a simple example of creating a QR code for a URL
url = pyqrcode.create("http://uca.edu")
# svg格式
url.svg("uca-url.svg", scale=8)
# EPS格式
url.eps("uca-url.eps", scale=2)
# terminal输出
print(url.terminal(quiet_zone=1))

  

输出:

技术分享图片

 

生成图片二维码:

https://blog.csdn.net/jy692405180/article/details/65937077

 

命令行二维码

标签:hello   sim   mod   生成   简单   介绍   one   ati   https   

原文地址:https://www.cnblogs.com/andy9468/p/10308262.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!