添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
writer.writerow(["闲暇时,我会被一段,配乐诗朗诵", ",所感动", ",悲伤"]) writer.writerow(["闲暇时,我会被一段,配乐诗朗诵", ",所感动", ",悲伤"]) # 写入多行用writerows # writer.writerows([[0, 1, 3], [1, 2, 3], [2, 3, 4]])
import csv
with open("test.csv", "w", newline="") as f:
    writer = csv.writer(f)
    writer.writerow(["闲暇时,我会被一段,配乐诗朗诵", ",所感动", ",悲伤"])
    writer.writerow(["闲暇时,我会被一段,配乐诗朗诵", ",所感动", ",悲伤"])
    # 写入多行用writerows
    # writer.writerows([[0, 1, 3], [1, 2, 3], [2, 3, 4]])

https://blog.csdn.net/waple_0820/article/details/70049953

https://www.cnblogs.com/meitian/p/4625011.html