import xlwings as xwapp = xw.App(visible=False, add_book=False)wb = app.books.open('test.xlsx') # 打开Excel文件sheet = wb.sheets[0] # 选择第0个表单