立即学习:https://edu.csdn.net/course/play/27668/373314?utm_source=blogtoedu
#rb==read binary data
file1=open(r"文件的路径","rb")
data=file1.read() #读取文件
f1.close
#wb==write binary data
f2=open(r"文件的路径","wb")
f2.write(data)
f2.close() # 关闭文件资源
#ab==追加写二进制数据