python:
import xlwings as xw
app = xw.App(visible=True,add_book=False)
workbook = app.books.open(r'C:\Users\18994\Desktop\周峰的python代码\xlwings\66.xlsx')
worksheet = workbook.sheets['sheet1']
worksheet.range('A1:E1').merge()
workbook.save()
workbook.close()
app.quit()