回答編集履歴
3
分かりやすいようにコードの順番を入れ替え
test
CHANGED
@@ -12,11 +12,11 @@
|
|
12
12
|
|
13
13
|
>>> wb = openpyxl.load_workbook("name.xlsx")
|
14
14
|
|
15
|
-
>>> ws = wb.worksheets[0]
|
16
|
-
|
17
15
|
>>> wb.sheetnames
|
18
16
|
|
19
17
|
['名簿']
|
18
|
+
|
19
|
+
>>> ws = wb.worksheets[0]
|
20
20
|
|
21
21
|
>>> ws_copy = wb.copy_worksheet(ws)
|
22
22
|
|
2
よく見たら必要なコードだったので元に戻した
test
CHANGED
@@ -11,6 +11,8 @@
|
|
11
11
|
>>> import openpyxl
|
12
12
|
|
13
13
|
>>> wb = openpyxl.load_workbook("name.xlsx")
|
14
|
+
|
15
|
+
>>> ws = wb.worksheets[0]
|
14
16
|
|
15
17
|
>>> wb.sheetnames
|
16
18
|
|
1
不要なコードが入っていたので削除
test
CHANGED
@@ -11,8 +11,6 @@
|
|
11
11
|
>>> import openpyxl
|
12
12
|
|
13
13
|
>>> wb = openpyxl.load_workbook("name.xlsx")
|
14
|
-
|
15
|
-
>>> ws = wb.worksheets[0]
|
16
14
|
|
17
15
|
>>> wb.sheetnames
|
18
16
|
|