Pythonを使用して簡単なcsv解析を実行しようとしていますが、次のコードがあります。
print csvdata
print "\n"
csvparsed = csv.reader(csvdata)
for row in csvparsed:
print row
ただし、解析されたデータの各行は1文字であり、コンマで区切られていないようです。ここで何かが足りませんか?これは私が得ている出力です:
Restaurant ID,2,,
,,,
Menu Name,Breakfast Menu,,
['R']
['e']
['s']
['t']
['a']
['u']
['r']
['a']
['n']
['t']
[' ']
['I']
['D']
['', '']
['2']
['', '']
['', '']
[]
['', '']
['', '']
['', '']
[]
['M']
['e']
['n']
['u']
[' ']
['N']
['a']
['m']
['e']
['', '']
['B']
['r']
['e']
['a']
['k']
['f']
['a']
['s']
['t']
[' ']
['M']
['e']
['n']
['u']
['', '']
['', '']