我正在试图保存excel,它是一个xlwings的结果, 我可以看到excel,但无法保存它。我如何解决这个问题
wb.save(r'C:¥Users¥my_path¥abstract_'+date_now+'.xlsx')
wb.close()
这就是我得到的错误
com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Excel', "Microsoft Excel cannot access the file 'C:\\Users\\my_path\\EAA8CD00'. There are several possible reasons:\n\n• The file name or path does not exist.\n• The file is being used by another program.\n• The workbook you are trying to save has the same name as a currently open workbook.", 'xlmain11.chm', 0, -2146827284), None)
顺便说一句,我的文件夹中没有同名文件
目前没有回答
相关问题 更多 >
编程相关推荐