Python操作Excel--xlrd、xlwt
2017-07-13 16:07
671 查看
# -*- coding: utf-8 -*- import xlrd, xlwt from datetime import date, datetime def read_excel(): # 打开文件 workbook = xlrd.open_workbook(r'E:\workspace\pythonmakeauto\pythonmakeauto\人员信息.xlsx') # 获取所有 sheet print(workbook.sheet_names())
文件名为 xlrd.py
执行上面内容后报错:AttributeError: module 'xlrd' has no attribute 'open_workbook'
解决方案:文件命名覆盖了原有的 xlrd.py,重新命名文件名即可。
相关文章推荐
- python使用xlrd xlwt操作Excel
- python excel 的相关操作(使用 xlrd xlwt 读写)
- python中使用xlrd、xlwt和xlutils3操作Excel
- python操作excel之xlrd、xlwt模块详解
- Python 使用 xlrd/xlwt 操作 Excel
- python+xlrd+xlwt操作excel
- python使用xlwt和xlrd模块操作excel
- python+xlrd+xlwt操作excel
- Python xlrd/xlwt对excel进行操作
- Python 使用 Xlrd/xlwt 操作 Excel
- 【Python】excel读写操作 xlrd & xlwt
- python中使用xlrd、xlwt操作excel
- Python 使用 Xlrd/xlwt 操作 Excel
- [Python笔记] 使用xlrd和xlwt进行简单的excel表格读写操作
- python - 通过加载第三方库xlrd/xlwt/xlsxwriter,来读写excel文件,不涉及图形操作
- python操作Excel读写--使用xlrd和xlwt
- Python 读写操作Excel —— 安装第三方库(xlrd、xlwt、xlutils、openpyxl)
- python中使用xlrd、xlwt操作excel
- python第三方库——xlrd和xlwt操作Excel文件学习
- Python操作excel的几种方式--xlrd、xlwt、openpyxl