📜  python 在新行上追加到 csv - Python 代码示例

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

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