# Open file
# 导入CSV安装包
import csv
# 打开需要写入的文件
with open("test4.csv", "w",newline='') as csvfile:
writer = csv.writer(csvfile)
# 先写入columns_name
写入标题
处理txt数据并转存为csv格式
最新推荐文章于 2024-04-30 19:29:01 发布
# Open file
# 导入CSV安装包
import csv
# 打开需要写入的文件
with open("test4.csv", "w",newline='') as csvfile:
writer = csv.writer(csvfile)
# 先写入columns_name
写入标题