The program generated by win32com does not process Word documents properly

The

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

Mar.03,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e409ca-448cf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e409ca-448cf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?