将list中各个元素逐行输出

  • Post author:
  • Post category:其他


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



版权声明:本文为weixin_45405128原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。