编译文件
rfile = open(r"D:\Python\code\video",mode='rb')wfile = open(r"D:\Python\code\video[副本]",'wb')
while True:
content=rfile.read(1024*1024*120)
if len(content) == 0:
break
wfile.write(content)
wfile.flush()
close.rfile()
close.wfile()
各位大佬,为什么会拒绝访问?求告知。谢谢!
File "D:/Python/code/Python编辑文件/文件操作/as.py", line 1, in <module>
rfile = open(r"D:\Python\code\video",mode='rb')
PermissionError: [Errno 13] Permission denied: 'D:\\Python\\code\\video'