Create a .csv file with values from a Python list
问题 I am trying to create a .csv file with the values from a Python list. When I print the values in the list they are all unicode (?), i.e. they look something like this [u\'value 1\', u\'value 2\', ...] If I iterate through the values in the list i.e. for v in mylist: print v they appear to be plain text. And I can put a , between each with print \',\'.join(mylist) And I can output to a file, i.e. myfile = open(...) print >>myfile, \',\'.join(mylist) But I want to output to a CSV and have