推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
larkifly
V2EX  ›  Python

如何把 fastqrcode 生成的二维码保存在内存中,并返回给浏览器

  •  
  •   larkifly · Mar 30, 2015 · 2825 views
    This topic created in 4071 days ago, the information mentioned may be changed or developed.
    image = qrcode.encode("Hello World", ec_level=qrcode.ERROR_CORRECT_H)
    filename = ‘123456’
    cache.set(filename, image.tostring())

    代码如上,不知道如何返回给浏览器
    4 replies    2015-03-30 23:02:54 +08:00
    kslr
        1
    kslr  
       Mar 30, 2015
    run2
        2
    run2  
       Mar 30, 2015
    生成普通图像? 生成base64的?
    其实也可以直接在客户端用js的lib生成。
    fork3rt
        3
    fork3rt  
       Mar 30, 2015
    base64 或者 生成在某个位置,返回地址给浏览器 ...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 23:19 · PVG 07:19 · LAX 16:19 · JFK 19:19
    ♥ Do have faith in what you're doing.