We do interface testing often used to XLRD and XLWT two modules, where the XLRD is also relatively good to get directly installed on the good,
However, the XLWT installation fails, and after downloading the XLWT3 module on the web itself, it then uses the Python setup.py install command to
Installation. When we import this module and use it, we will encounter the following two situations:
1. Error Valueerror:cannot use LOCALE flags with a str pattern
Solution:
Enter Lib in the Python3 installation directory, locate the ser_parse.py file, and modify the No. 832 line of code
Comment on this line, instead:
The operation will not be an error.
2. Error ValueError: 'init' in slots conflicts with class variable
Solution:
Go to the Python3 installation directory lib\site-packages\xlwt3\ find the formula.py file, modify line 7th
Modify to (remove init):
The operation will not be an error.
python--interface Test--XLWT module using the Times wrong case resolution method