Learn to read and write text files in Python, specify file mode, flush output ... lines = ['New line 1\n', 'New line 2\n', 'New line 3'] f.writelines(lines).
確定! 回上一頁