Use Python to achieve automatic processing of paper grading information.
Basic task: Generate Word files with certain formats for each student's different scoring records (Excel data). The Word template file needs to be provided by the user.
GUI file was generated by the Tkinter Designer by Parth Jadhav.
Repository: https://github.com/ParthJadhav/Tkinter-Designer
A Python library to read/write Excel 2010 xlsx/xlsm files.
python-docx is a Python library for creating and updating Microsoft Word (.docx) files.
The project distribution uses the PyInstaller third-party library for packaging. The sample package configuration file is provided in this project path. You can use and package it by modifying it to your own project path.
pack-config-template.spec
···
···
···
a = Analysis(['main.py',
'【Your project path】\\ThesisSummarizing\\func\\CommonTools.py',
'【Your project path】\\ThesisSummarizing\\func\\ExcelFunc.py',
'【Your project path】\\ThesisSummarizing\\func\\WordFunc.py',
'【Your project path】\\ThesisSummarizing\\gui\\gui.py',
'【Your project path】\\ThesisSummarizing\\model\\Config.py',
'【Your project path】\\ThesisSummarizing\\model\\EnumModels.py',
'【Your project path】\\ThesisSummarizing\\model\\ExceptionModels.py',
'【Your project path】\\ThesisSummarizing\\model\\RatingModels.py',
'【Your project path】\\ThesisSummarizing\\model\\ExceptionModels.py',
'【Your project path】\\ThesisSummarizing\\venv\\Lib\\site-packages\\openpyxl\\__init__.py',
'【Your project path】\\ThesisSummarizing\\venv\\Lib\\site-packages\\docx\\__init__.py'
],
···
···
···
Perform packaging
pyinstaller -i xx.ico pack-config-template.spec
- Author: Jason
- Email: [email protected]
- Blog: blog.lking.icu
- CSDN: https://blog.csdn.net/weixin_43670802