質問編集履歴

1

コード追加

2022/01/16 02:15

投稿

razu
razu

スコア2

test CHANGED
File without changes
test CHANGED
@@ -12,4 +12,9 @@
12
12
  File "C:\Users\\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1240, in __init__
13
13
  self.fp = io.open(file, filemode)
14
14
  FileNotFoundError: [Errno 2] No such file or directory: 'data.xlsx'
15
+ ```python
16
+ import openpyxl
15
17
 
18
+ book = openpyxl.load_workbook("data.xlsx")
19
+ sheet = book["Sheet1"]
20
+ ```