python如何使用xlrd读取excel内容并打印

2024-12-08 00:46:17

1、首先安装xlrd模块

python如何使用xlrd读取excel内容并打印

2、在代码中导入xlrd模块

python如何使用xlrd读取excel内容并打印

3、打开桌面上的excel文件

python如何使用xlrd读取excel内容并打印

4、获取表sheet1

python如何使用xlrd读取excel内容并打印

5、获取表中第二行的内容

python如何使用xlrd读取excel内容并打印

6、打印获取到的内容

python如何使用xlrd读取excel内容并打印

7、运行我们的程序

python如何使用xlrd读取excel内容并打印

8、和实际的excel文件内容一致

python如何使用xlrd读取excel内容并打印
猜你喜欢