📜  python csv 添加行 - Python 代码示例

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

代码示例3
import csv   
fields=['first','second','third']
with open(r'name', 'a') as f:
    writer = csv.writer(f)
    writer.writerow(fields)