表如图,读取Loadcase一列数据
import pandas as pd getinput = pd.read_excel('表路径',usecols=['Loadcase']) print(getinput ) # 获取行数 line_input = len(getinput ) print(line_input )
运行结果为