Skip to content

rmboot/auto-excel-to-word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

安装使用

git clone https://github.com/rmboot/auto-excel-to-word.git
cd auto-excel-to-word
pip install -r requirements.txt
python auto-excel-to-word.py

运行过程

1.pandas读取存储数据的excel表格(data.xlsx),并将其转换为存储字典(dict)的列表(list)类型。
2.循环读取列表(list)的每项数据(即data.xlsx的每一行),此时为字典(dict)。
3.docxtpl加载模板文件(temp.docx)并按字典(dict)填充模板的内容。
4.auto-excel-to-word目录内生成相应的word文件。

About

将excel每行数据填充至word

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages