Open the file in append mode and write a new line (including a \n line separator): with open(filename, 'a') as out: out.write(var + '\n').
確定! 回上一頁