Linux環境下Python操做word

一、創建word模板(使用${ }標識key) 二、將word模板另存爲*.xml 三、python代碼python from string import Template #res中是須要在word中顯示的內容 res={} res['test01']=u"測試1" res['test02']=u"測試2" #word模板讀入 input_file = file("/home/ubuntu/w
相關文章
相關標籤/搜索