Python:读取Excel 不带第一行标题

#根据第0到第1列进行重建 0-X 1-Y
PX=sheet_name.col_values(0)[1:]
PY=sheet_name.col_values(1)[1:]

读取的某一列后在后边加[1:]表示从该列下标为1也即第二行开始截取

猜你喜欢

转载自www.cnblogs.com/LesBlog/p/10888710.html