📜  在 python 代码示例中编写二进制文件

📅  最后修改于: 2022-03-11 14:45:55.020000             🧑  作者: Mango

代码示例1
file = open("sample.bin", "wb")
COPYfile.write(b"This binary string will be written to sample.bin")
COPYfile.close()