在windows上运行我的Python加密程序时,某些文件返回
File "C:\Users\admin\Desktop\test.py", line 71, in encrypt_file
with open(out_filename, 'wb') as outfile:
PermissionError: [Errno 13] Permission denied:
有没有办法让Python程序获得许可?我已经尝试以管理员身份运行我的程序,以及这个网站上的一些权限提升片段。
代码如下:
with open(in_filename, 'rb') as infile:
with open(out_filename, 'wb') as outfile:
outfile.write(struct.pack('<Q', filesize))
outfile.write(iv)
https://stackoverflow.com/questions/51676274
复制相似问题