二进制文件的读写_图片文件拷贝
2019-12-05 本文已影响0人
荆妮妮
读取图片文件,实现文件拷贝
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")