To read the entire file as a list of lines, use the readlines() method. All lines except the last one include a newline character \n at the end.
確定! 回上一頁