... 'r') for line in f: print(line)補充說明變數 line 會包含每行結尾的換行符號,若要去除他們請使用 replace()函數。 for line in f: line = line.replace('\n', ...
確定! 回上一頁