这些过程都没有,正如预期的那样阅读文档:
worksheet.close() workbook.close()
有没有办法在openpyxl中完成后关闭文件?或者在程序退出时自动处理?我不想让电子表格留在内存中.
python file openpyxl
file ×1
openpyxl ×1
python ×1