推荐学习书目
› 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
myyou
V2EX  ›  Python

xlsx 能不能像 csv 一样支持边写入边下载?

  •  
  •   myyou · Nov 30, 2017 · 3395 views
    This topic created in 3230 days ago, the information mentioned may be changed or developed.
    8 replies  •  2017-11-30 16:29:33 +08:00
    araraloren
        1
    araraloren  
       Nov 30, 2017
    xlsx is too complicated than csv
    Maybe you can write your date to csv, and then convert it to xlsx format.
    andyhuzhill
        2
    andyhuzhill  
       Nov 30, 2017
    xlsx 本质上是一个 zip 压缩的 xml 文件 而 csv 就是一个文本文件而已
    jasontse
        3
    jasontse  
       Nov 30, 2017 via iPad
    应该没办法实现数据流把,它的本质是个 zip 里面一堆 xml。
    metorm
        4
    metorm  
       Nov 30, 2017 via Android
    边解析边下载我懂,求教楼主边写边下载是个什么概念?
    myyou
        5
    myyou  
    OP
       Nov 30, 2017
    @metorm 就是把向 xlsx 一行一行写入数据转换为数据流,而不是在本地把所有数据全部写入 xlsx 再传输
    0ZXYDDu796nVCFxq
        6
    0ZXYDDu796nVCFxq  
       Nov 30, 2017
    这需求还是上数据库吧
    zlowly
        7
    zlowly  
       Nov 30, 2017   ❤️ 1
    metorm
        8
    metorm  
       Nov 30, 2017 via Android
    @zlowly 摩拜干货大佬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1890 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:02 · PVG 08:02 · LAX 17:02 · JFK 20:02
    ♥ Do have faith in what you're doing.