Python:读取xlsx和xls文件(Excel操作2)

#!/usr/bin/env python
# coding:UTF-8


"""
@version: python3.x
@author:曹新健
@contact: [email protected]
@software: PyCharm
@file: 2读取xlsx和xls文件.py
@time: 2018/9/13 17:45
"""

'''
pip install openpyxl
pip install xlrd
pip install future
pip install xlwt-future
pip install pyexcel-io
pip install ordereddict
pip install pyexcel
pip install pyexcel-xls
'''

from collections import OrderedDict
from pyexcel_xls import get_data


path = r"周总结周计_20180915.xls"
dic = get_data(path)
for sheet in dic:
    print(sheet)
print(dic,len(dic),sep="\n")
print(dic["本周周报"])

 

你可能感兴趣的:(Python脚本编程,Python脚本编程)