如何往excel中写子表?
with pd.ExcelWriter("C:/last_date.xlsx") as writer:
for i in range(0, 10):
df = pd.DataFrame()
df.to_excel(writer, index=False, sheet_name=str(days[i + 1]))
with pd.ExcelWriter("C:/last_date.xlsx") as writer:
for i in range(0, 10):
df = pd.DataFrame()
df.to_excel(writer, index=False, sheet_name=str(days[i + 1]))