import pandas as pd
# 读取 Excel 文件
file_path = r'D:\vmflex_2500\大于10mm降水\降水分区3.xlsx'
df = pd.read_excel(file_path)
# 插入两列,并给定初始值
df.insert(df.columns.get_loc('Month') + 1, 'New_Column1', value='Initial_Value1')
df.insert(df.columns.get_loc('Month') + 2, 'New_Column2', value='Initial_Value2')
# 保存修改后的 Excel 文件
df.to_excel(file_path, index=False)