readline() and .readlines() are very similar. They are both used in constructs like
readline() 和 .readlines() 非常相似。
Python's readlines routine is used to read all lines in a file into a list of strings.
Python的readlines例程用于将一个文件的所有行读取到一列字符串中。
Call the readlines method to read all the lines in the file into an array called lines.
调用readlines方法将文件中的所有行读入一个名为lines的数组。
应用推荐