Python 另存为 excel

复制一个 excel

  • 注意 openpyxl-3.0.10
from openpyxl.reader.excel import load_workbook
if __name__ == '__main__':
    wb = load_workbook('source.xlsx')
    wb.save('样式表.xlsx')

其他版本异常错误

openpyxl: Value must be either numerical or a string containing a wildcard
posted @ 2023-11-20 10:37  vx_guanchaoguo0  阅读(69)  评论(0编辑  收藏  举报