目录
with open('somefile.txt', 'w') as out_file:
out_file.write()
lineinfo = []
with open(filename, 'r', encoding='UTF-8') as file:
for line in file:
lineinfo.append(line.rstrip())