Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xlwt を使用して作成するワークシートに配列 (データ = [][]) を書き込もうとしています。私の質問は、開始する列を指定できますか? for ループを使用して、行ごとに値を取得する配列を反復処理することを計画しています。たとえば、最初の行は C1 で始まり、次の行は C2 で始まります。ドキュメントと例を読みました。しかし、これを行う明確な方法を見つけることができません。どんな助けでも大歓迎です!
何かのようなもの:
wb = xlwt.Workbook() ws = wb.add_sheet('Sheet1') for r, row in enumerate(data): for c, col in enumerate(row): ws.write(r, 2 + c, label=col)