修改表格内容 向某个格子写入数据并保存 sheet[‘A1’] = ‘你好啊’ import os os.chdir('D:\\python_major\\auto_office7') from openpyxl import load_workbook workbook = load_workbook(filename= '这是一个表格.xlsx') sheet = workbook.active sheet['A1']