Python's Excel operations

Source: Internet
Author: User

XLRD,XLWT and xlutils are high-efficiency tools for working with Excel documents (*.xls) in Python. Wherein, XLRD can only read XLS,XLWT only new XLS (can not be modified), Xlutils can xlrd. Book to Xlwt.workbook, allowing you to modify the data based on the existing XLS and create a new XLS to implement the modification.

Import xlwt# Write Excel
BOOK=XLWT. Workbook () #创建一个工作簿
Sheet=book.add_sheet (' haha ') #创建一个表名
Sheet.write (2,3, ' Peng Jia ')
Book.save (' Wawa.xls ') #保存一个excel文件

Python's Excel operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.