自己定义一个分割符号规则
csv.register_dialect(“规则名称”,delimiter=“分割符”,quoting=csv.QUOTE_ALL)
import csv
def csv_write():
with open("data.csv","w",encoding="utf-8") as file:
file.write("id,name,url,num")
file.write("\n")
file.write
自己定义一个分割符号规则
csv.register_dialect(“规则名称”,delimiter=“分割符”,quoting=csv.QUOTE_ALL)
import csv
def csv_write():
with open("data.csv","w",encoding="utf-8") as file:
file.write("id,name,url,num")
file.write("\n")
file.write