みんな。
"20568078","240431","jpg","St, Carolina 1920",,
csvを解析したい["20568078","240431","jpg","St, Carolina 1920","",""]
これを使用して:
string=r'"20568078","240431","jpg","St, Carolina 1920",,'
reader = csv.reader(string)
for r in reader:
print (r)
私は出力を得ました:
['20568078']
['', '']
['240431']
['', '']
['jpg']
['', '']
['St, Carolina 1920']
['', '']
['', '']
['', '']
不要な を削除し、最後の 2 つ,,
を""
とに変更する方法を知りたい""
ありがとうございました。