标签:ble book ror print pen pip aliyun open sheet
Excell 文件---选项---公式---R1C1样式
CMD安装 xlrd
pip install xlrd -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
源码————
import xlrd
xlsx = xlrd.open_workbook(‘D:\地址表.xlsx‘)
table = xlsx.sheet_by_index(0)
#table = xlsx.sheet_by_name("地址表")
print(table.cell_value(1,2))
print(table.cell(1,2).value)
print(table.row(1)[2].value)
标签:ble book ror print pen pip aliyun open sheet
原文地址:https://www.cnblogs.com/guowei2020/p/12272524.html