在Python中添加额外的回车(在Windows上)
import csv outfile = file('test.csv', 'w')writer = csv.writer(outfile, delimiter=',', quoting=csv.QUOTE_MINIMAL)writer.writerow(['hi','dude'])writer.writerow(['hi2','dude2'])outfile.close()
hi,dude\r\r\nhi2,dude2\r\r\n
hi,dude\r\nhi2,dude2\r\n
开满天机
江户川乱折腾
相关分类