提交 9dc04880 编写于 作者: TANG-3-'s avatar TANG-3-

Update 05_step6.md

上级 b1de40ca
......@@ -4,17 +4,13 @@
```python
import openpyxl as exl
# 根据文件名打开一个Excel工作簿,并返回工作簿对象
wb = exl.load_workbook('test.xlsx')
# 根据sheet表的名字,获取到指定的sheet表
sheet = wb['一班']
# sheet.rows返回当前sheet表的所有行,我们将其转换为一个列表方便操作
# 列表中的每一个元素就是一行数据
all_row = list(sheet.rows)
# 取第二行第一列单元格中的值
print(all_row[1][0].value)
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册