修改字体样式 Font(name=字体名称,size=字体大小, bold=是否加粗,italic=是否斜体,color=字体颜色) import os os.chdir('D:\\python_major\\auto_office8') from openpyxl.styles import Font from openpyxl import load_workbook workbook = load_workbook(filename