📜  python csv write add new line - Python 代码示例

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

代码示例1
with open('output.csv', 'w', newline='\n', encoding='utf-8') as f:
    writer = csv.writer(f)
    ...