在创建file对象时,通过把'b'添加到文件模式中,可以很容易地用 Python 处理二进制数据,如清单7 所示。
You can easily do so in Python by appending 'b' to the file mode when you create the file object, as shown in Listing 7.
在创建file对象时,通过把'b'添加到文件模式中,可以很容易地用 Python 处理二进制数据,如清单7 所示。
You can easily do so in Python by appending 'b' to the file mode when you create the file object, as shown in Listing 7.
应用推荐