2024-06-03 04:02:33 发布
网友
python新手。要将大型csv文件转换为tsv。
import re with open("D:/AddressEvaluation/NAD/NAD.csv", 'r') as myfile: with open("D:/NAD.txt", 'w') as csv_file: for line in myfile: fileContent = re.sub(",", "\t", line) csv_file.write(fileContent)
我遗漏了什么吗?如果我错了就纠正我。
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐