from docx import Document
from docx.oxml.ns import qn
doc= Document("word\shi.docx")
for p in doc.paragraphs:
for run in p.runs:
run.element.rPr.rFonts.set(qn('w:eastAsia'), "宋体")
from docx import Document
from docx.oxml.ns import qn
doc= Document("word\shi.docx")
for p in doc.paragraphs:
for run in p.runs:
run.element.rPr.rFonts.set(qn('w:eastAsia'), "宋体")
2 回答5.2k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
4 回答1.4k 阅读✓ 已解决
3 回答1.3k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
2 回答857 阅读✓ 已解决
1 回答1.7k 阅读✓ 已解决
1 回答5.3k 阅读
3 回答5.7k 阅读✓ 已解决
1 回答4.7k 阅读
1 回答7k 阅读
8.8k 阅读