求助,使用python批量修改word中表格后,表格原有字體格式被修改
從Excel中提取資訊填寫到word中,
使用的是自己定義的replace函式,保存好的檔案格式就變化了。這個要怎么優化?
if sheetx.cell(row=1, column=col).value != None:
for l in range(1, sheetx.max_row + 1):
old_text = sheetx.cell(row=l, column=1).value
new_text = sheetx.cell(row=l, column=col).value
replace_text(str(old_text), str(new_text))
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/90873.html
上一篇:從github下了一個專案,匯入到pycharm,但是點run的時候會出現這個提示,有沒有大神知道該怎么處理,萬分感激
