Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "D:\python\lib\site-packages\openpyxl\worksheet_writer.py", line 32, in _openpyxl_shutdown
os.remove(path)
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\Users\scan\AppData\Local\Temp\openpyxl.z24do63q'
Exception ignored in: <generator object WriteOnlyWorksheet._write_rows at 0x0000027D637782E0>
Traceback (most recent call last):
File "D:\python\lib\site-packages\openpyxl\worksheet_write_only.py", line 75, in _write_rows
File "D:\python\lib\contextlib.py", line 124, in exit
File "D:\python\lib\site-packages\et_xmlfile\xmlfile.py", line 50, in element
File "D:\python\lib\site-packages\et_xmlfile\xmlfile.py", line 77, in _write_element
File "D:\python\lib\xml\etree\ElementTree.py", line 1109, in tostring
File "D:\python\lib\xml\etree\ElementTree.py", line 732, in write
File "D:\python\lib\contextlib.py", line 117, in enter
File "D:\python\lib\xml\etree\ElementTree.py", line 801, in _get_writer
LookupError: unknown encoding: us-ascii
Process finished with exit code 0
这个是哪里设置不对吗?
你的程序已经执行过几次了吧?应该文件还没关闭释放