私は csv ファイルに書き込んでいる単純な辞書を持っています。サーバーで表示すると問題なく表示されますが、Excel では完全に空白です。
csvOutput = {'http://www.test.com/': 'This source is currently in the system.', 'http://test.com/': 'This source is not currently in the system.', 'http://www.test.com/': 'This source is currently in the system.'}
writer = csv.writer(open(csvFileName, 'wb'), quoting=csv.QUOTE_NONE, dialect='excel')
for key, value in csvOutput.items():
writer.writerow([key, value])
ご協力いただきありがとうございます!
そして、これがvimでファイルに表示されるものです:
http://www.test.com/,This source is currently in the system.
http://test.com/,This source is not currently in the system.
http://www.test.com/,This source is currently in the system.
ありがとう!