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

Python 每日一练: Excel 文件处理

  •  
  •   ppj · Sep 15, 2022 · 3472 views
    This topic created in 1515 days ago, the information mentioned may be changed or developed.

    xlrd 、xlwt 、xlutils 各自的功能都有局限性,但三者互为补充,覆盖了 Excel 文件尤其是 .xls 文件的操作。xlwt 可以生成 .xls 文件,xlrd 可以读取已经存在的 .xls 文件,xlutils 连接 xlrd 和 xlwt 两个模块,使用户可以同时读写一个 .xls 文件。

    代码请点击 => 代码

    5 replies  •  2022-09-15 21:25:14 +08:00
    saigo
    saigo
    Sep 15, 2022
    1
    有没有打开 excel 再保存,能是柱状图不消失或者变色的库没有
    xz410236056
    xz410236056
    Sep 15, 2022
    2
    pandas 了解一下?
    shinession
    shinession
    Sep 15, 2022
    3
    xlwings 试过没?调用 win32 操作的
    HashV2
    HashV2
    Sep 15, 2022❤️1
    4
    wynemo
    wynemo
    Sep 15, 2022
    5
    pip install pyexcel[xls,xlsx,io]

    可生成器流式处理

    底层调用 xlrd xlwt openpyxl
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   507 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:57 · PVG 04:57 · LAX 12:57 · JFK 15:57
    ♥ Do have faith in what you're doing.