擅长:python、mysql、java
<p>有关使用<a href="https://docs.python.org/3/library/csv.html#csv.writer" rel="nofollow noreferrer">csv writer</a>的信息,请参见下面的示例</p>
<pre><code>import csv
with open('abc.txt', 'w') as csv_file:
wrtr = csv.writer(csv_file)
for val in range(10):
wrtr.writerow(str(val))
</code></pre>