0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

エクセルを操作できるopenpyxlについてまとめました。

openpyxlインポート

import openpyxl

ブックを作成

wb = openpyxl.Workbook()

シートを作成

ws = wb.create_sheet(title='hoge')

シートの取得

ws = wb['hoge'] 

A1セルの取得

cell = ws['A1'] 

値の代入

cell.value = "テスト"

ファイルの保存

wb.save("input_file.xlsx")
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?