readlines () # Print the list of lines print(lines) ... To read a file line-by-line into a list in Python, you can use the readlines() method of the file object.
確定! 回上一頁