📜  python逐行写入csv - Python代码示例

📅  最后修改于: 2022-03-11 14:47:25.037000             🧑  作者: Mango

代码示例3
##text=List of strings to be written to file
with open('csvfile.csv','wb') as file:
    for line in text:
        file.write(line)
        file.write('\n')