file3.py 159 B

1234
  1. f = open('test/out/file3.txt', 'w')
  2. seq = ['This is the first line.\n', 'This is the second line.\n', 'This is the third line.\n']
  3. f.writelines(seq)
  4. f.close()