简体   繁体   中英

read data from csv file to word document as a table using python

任何人都可以为我的代码提供帮助,我正在使用现有的 Word 模板从 csv 文件中提取以写入模板 word 中的表格,我正在使用 python 库,例如:docxtpl、pandas、csv

just curious, any specific reason to use Word?

I built a document generator that extracted data from excel and output to a Word doc, I used pandas and docxtpl, maybe the code I used can help

here you can see the code and a working example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM