大家好,我尝试了很多显示以下代码的方法。我希望它以另一个方向显示。
此代码显示以下 excel 文件。
newDirRH = "C:/Plots"
newfile = newDirRH + "/TabulatedStatsVSM.csv"
with open(newfile, "wb") as csvfile:
writer = csv.writer(csvfile)
writer.writerow(["NameIP", "TypeIP", "FieldIP", "SignalIP", "NameOP", "TypeOP", "FieldOP", "SignalOP"])
writer.writerow(["name","type","[cm]","[m]","name","type","[cm]","[m]"])
for field, signal, field1, signal1 in zip(FieldIP, signalIP, FieldOP, signalOP):
writer.writerow([NameIP, TypeIP,field, signal, NameOP, TypeOP,field1, signal1])
NameIP = TypeIP = NameOP = TypeOP = ''
以下代码显示的 Excel 文件。
我正在努力实现这样的目标。是否可以??这个excel文件,我自己编辑的。