質問編集履歴
1
pythonコードの変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,12 +17,16 @@
|
|
17
17
|
### ソースコード
|
18
18
|
|
19
19
|
```python3
|
20
|
-
def main():
|
21
|
-
|
20
|
+
from xlwings import Book
|
21
|
+
import xlwings as xw
|
22
22
|
|
23
|
+
def test():
|
23
|
-
|
24
|
+
sh = xw.Book.caller().sheets['a']
|
24
|
-
|
25
|
+
sh.range('A1').value = 'hello'
|
25
26
|
|
27
|
+
|
28
|
+
if __name__ == '__main__':
|
29
|
+
test()
|
26
30
|
```
|
27
31
|
|
28
32
|
```VBA
|