python in the read, readline and readlines the difference?

read: read the entire file.
readline: read the next line, the method using generators.
readlines: read the entire file into an iterator to traverse for us (to read in a list, for use, more convenient).

Guess you like

Origin www.cnblogs.com/faily/p/11038359.html