0
以下のコードを使用すると、データはエクスポートされますが、すべてが1つの列にまとめられます。csv pythonへのデータのエクスポート
b = open('tester.csv', 'wb')
a = csv.writer(b)
while (count < x):
tags = str(data['alerts'][count] ['tags']).replace("u\"","\"").replace("u\'","\'")
a.writerows(strList)
[ファイルへのPythonの輸出のcsvデータ]の可能な重複(http://stackoverflow.com/questions/18813490/python-export-csv-data-into -file) – Cyrbil
'strList'はどこに定義されていますか?また、サンプルデータが役立ちます。 – Alexander
'strList'とは何ですか?これは行の集合( '['r1'、 'r1c2']、['r2'、 'r2c2']]')でなければなりません。 –