In this case, read returns bytes, but you can't use readline .
在这种情况下,read会返回字节,但readline则不能用。
You first step through the file line by line using the readline method.
首先,用readline方法在文件行中移动。
In this case, you should use the readline method, as shown in Listing 5.
在这种情况下,应当使用readline方法,如清单5所示。
应用推荐