读取图片文件,实现文件拷贝
with open('flag.gif','rb') as f:
with open('flag_copy.gif','wb') as w:
for line in f.readlines():
w.write(line)
print("finish copy")
读取图片文件,实现文件拷贝
with open('flag.gif','rb') as f:
with open('flag_copy.gif','wb') as w:
for line in f.readlines():
w.write(line)
print("finish copy")