|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
出现了错误
Traceback (most recent call last):
File "<pyshell#39>", line 1, in <module>
wb.save(r"C:\Users\Administrator\Desktop\TOP250.xlsx")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\openpyxl\workbook\workbook.py", line 407, in save
save_workbook(self, filename)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\openpyxl\writer\excel.py", line 291, in save_workbook
archive = ZipFile(filename, 'w', ZIP_DEFLATED, allowZip64=True)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\zipfile.py", line 1251, in __init__
self.fp = io.open(file, filemode)
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Administrator\\Desktop\\TOP250.xlsx'
你不能打开 xlsx 文件后执行代码,将后台已经打开的 Excel 文件退出重新执行代码
|
|