标签:user users top xls txt use with open row 转换
#_*_ coding:utf-8 _*_
#author:yr
import xlrd
data = xlrd.open_workbook(r"C:\Users\yangr\Desktop\DuerOS远场设备对外测试统计表v3.0.xlsx")
st = data.sheets()[0] #sheets:纸,一张,被单
rows = st.nrows #行数
# with open (r"C:\Users\yangr\Desktop\exceltotxt","a+") as f:
for i in range(rows+1):
print(st.row_values(i))
标签:user users top xls txt use with open row 转换
原文地址:https://www.cnblogs.com/yr-number1/p/10142105.html