文章目录 前言 python 读取excel 表格 前言 如何用python读取excel表格数据呢 ? python 读取excel 表格 首先需要配置好环境,需要下载 xlrd 包: # 如果不指定低版本,那么将会下载最新的xlrd,可能会会出现raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+‘; not supported‘) pip install xlrd==1.2.0 比如我们有一个名为test.xlsx的excel表,里面的表名称为test1,如果读取里面的数据呢? 文件具体如下: 代码如下: import xlrd if __name__ == '__