标题:编译文件
取消只看楼主
lsp19991127
Rank: 2
来 自:江西
等 级:论坛游民
帖 子:104
专家分:20
注 册:2018-10-30
结帖率:91.67%
 问题点数:0 回复次数:0 
编译文件
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'
搜索更多相关主题的帖子: 编译 文件 Python code content 
2018-11-29 21:49



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-491681-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.425221 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved