将list中各个元素逐行输出

with open ('corpus.csv', 'w') as fo:
   for d in corpus:
     fo.write(str(d) + '\n')

 

你可能感兴趣的:(Python)