I have a problems when writing special string to CSV.
Problem Solved:
def csv_write(s):
with open('test.csv', 'w', newline='', encoding='UTF-8') as f:
writer = csv.writer(f, delimiter = ',')
writer.writerow(s)
f.close()
def csv_read(path):
with open('test.csv', 'r', encoding='utf8') as f:
reader = csv.reader(f)
for row in reader:
print(row)
csv_write(['Ngày tháng năm',''])
csv_read('test.csv')
Thank for all.