image = qrcode.encode("Hello World", ec_level=qrcode.ERROR_CORRECT_H)
filename = ‘123456’
cache.set(filename, image.tostring())
代码如上,不知道如何返回给浏览器
filename = ‘123456’
cache.set(filename, image.tostring())
代码如上,不知道如何返回给浏览器
|
kslrMar 30, 2015
1
https://github.com/aerofs/fastqrcode -> Usage
|
|
run2Mar 30, 2015
2
生成普通图像? 生成base64的?
其实也可以直接在客户端用js的lib生成。 |
|
fork3rtMar 30, 2015
3
base64 或者 生成在某个位置,返回地址给浏览器 ...
|
|
SeptembersMar 30, 2015
4
|