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

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

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