📜  python 将 csv 转换为 tsv - TypeScript 代码示例

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

代码示例1
import csv

with open('D:/AddressEvaluation/NAD/NAD.csv','r') as csvin, open('D:/NAD.txt', 'w') as tsvout:
    csvin = csv.reader(csvin)
    tsvout = csv.writer(tsvout, delimiter='\t')

    for row in csvin:
        tsvout.writerow(row)