if name == "main":
from itertools import product
for n, c in product(range(1, 4), list('abc')):
ff = open('data/data.csv','w')
S=u.read('data/{n}/{c}.csv')
print(S)
でやってみてもSyntaxErrorと出る。
csvファイルの中身を表示させるプログラムを作るにはどうしたらいいか。
ただしSは, すでに定義されているものとする
いろいろと質問内容が雑すぎるので、公式ヘルプ(https://teratail.com/help/question-tips)を見て修正してください。またもしどこからかコピペしてきたソースであれば出典を明記してくれると意図がくみやすくなります
同じ質問を連投するのは止めましょう。 https://teratail.com/questions/155929 https://teratail.com/questions/155936
ヘルプを読みましょう。https://teratail.com/help#posted-otherservice
回答2件
あなたの回答
tips
プレビュー