一:从excel中取data excel中放入预期值,上报data数据 excel中第一行是data数据,第二行是预期值 在每个class中,取data数据上报到接口中,具体代码如下: def getpost2(): data=xlrd.open_workbook('D:\\test.xlsx') table=data.sheets()[0] nrows=table.nrows for i in range(nrows): postdata=table.cell(i,0).value yq=ta