将list中各个元素逐行输出

with open ('corpus.csv', 'w') as fo:
   for d in corpus:
     fo.write(str(d) + '\n')
发布了128 篇原创文章 · 获赞 90 · 访问量 4888

猜你喜欢

转载自blog.csdn.net/weixin_45405128/article/details/102604808