擅长:python、mysql、java
<p>尝试以下操作:</p>
<pre><code>country = ['Togo', 'Nauru', 'Palestine, State of', 'Malawi']
with open('temp.csv', 'wt') as output_write:
csvout = csv.writer(output_write, lineterminator='\n')
for item in country:
csvout.writerow((item, ))
</code></pre>