参考链接:
# open
word = DispatchEx('Word.Application')
word.Visible = 1
word.DisplayAlerts = 0
lg.info('Loading template:', template_file)
doc = word.Documents.Open(template_file)
# 通过在文档里查找key的位置,用value无实现替换
key = '{分点内容}' # 需要在word中将该标记设置为编号格式
value = "我是谁?^p我在哪?^p我在干嘛?"
word.Selection.Find.Execute(key, False, False, False, False, False, True, 1, True, value, 2)