code is all right. The Word document is processed by calling win32com.client. The specific operations include searching and expand, related operations are all from the MSDN document
.however, after generating the program, some code can not be executed normally, such as expand statement, selection.text, etc.
excuse me, hero, do you have an answer?
programs are packaged with pyinstaller