📜  读取二进制文件 python 代码示例

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

代码示例2
with open("myfile", "rb") as f:
    byte = f.read(1)
    while byte != b"":
        # Do stuff with byte.
        byte = f.read(1)