I tried to write strings to csv.
import csv
f = open('ttt.csv', 'w', encoding='utf-8', newline='')
wr = csv.writer(f)
for t in [['Love it', 'doenst matter']] :
lin = ''.join(t)
print(type(lin))
wr.writerow([lin])
f.close()
Normally, I expected and hope it will be written :
"Love itdoenst matter"
In this manner, it should be saved like :
Love itdoenst matter |
But actually it is written on csv file without quotes :
Love itdoenst matter
So in CSV file doesn't treat it as one element of string. So it saves Love itdoesnt matter on different columns.
Like
Love | itdoesnt | matter
Don't know why this happen