f_class="lazy" data-src = open('1.jpg','rb')
content = f_class="lazy" data-src.read()
f_copy = open('1-副本.jpg','wb')
f_copy.write(content)
#f_copy.write(content[:-100000])截取图片
#
f_class="lazy" data-src.close()
f_copy.close()
#视频复制
import time
#开始时间
start_time = time.time()
#以二进制方式打开视频
v_class="lazy" data-src = open('4.mp4','rb')
#读取视频中所有数据
content = v_class="lazy" data-src.read()
#创建复制出来的文件
v_copy = open('4-副本.mp4','wb')
#写入
v_copy.write(content)
#关闭操作
v_class="lazy" data-src.close()
v_copy.close()
#结束时间
end_time = time.time()
print('耗时:',(end_time - start_time))