推荐学习书目
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 · 2980 views
    This topic created in 1341 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
        1
    saigo  
       Sep 15, 2022
    有没有打开 excel 再保存,能是柱状图不消失或者变色的库没有
    xz410236056
        2
    xz410236056  
       Sep 15, 2022
    pandas 了解一下?
    shinession
        3
    shinession  
       Sep 15, 2022
    xlwings 试过没?调用 win32 操作的
    HashV2
        4
    HashV2  
       Sep 15, 2022   ❤️ 1
    wynemo
        5
    wynemo  
       Sep 15, 2022
    pip install pyexcel[xls,xlsx,io]

    可生成器流式处理

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