是否可以使用Python编辑文档文件? [英] Is it possible to edit doc files with Python?
本文介绍了是否可以使用Python编辑文档文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一组.doc文件,我想对其进行一些简单的更改(例如,将每个文件中所有文本的字体设置为arial).
I have a set of .doc files which I want to perform some simple changes to (e.g. set the font of all the text in each file to be arial).
我不想手动执行所有操作.我以为我会尝试使用Python脚本将其自动化.这是一项复杂的任务吗?怎么做?
I don't want to do all the operations manually. I thought I'll try to automate it with a Python script. Is it a complicated task? How is it done?
我使用Python 3.
I use Python 3.
推荐答案
Python docx模块应该会有所帮助.
(今天第二次问这个问题!)
(2nd time this question was asked today!)
这篇关于是否可以使用Python编辑文档文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文