質問編集履歴
2
誤記
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,8 +25,8 @@
|
|
25
25
|
from halo import Halo
|
26
26
|
|
27
27
|
@Halo(text='Loading', spinner='dots')
|
28
|
-
def create(
|
28
|
+
def create(outputfile):
|
29
|
-
with open(
|
29
|
+
with open(outputfile, 'w') as f:
|
30
30
|
|
31
31
|
print("!", file=f)
|
32
32
|
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,4 +9,31 @@
|
|
9
9
|
regtool -v list /HKLM/Software/Cygwin
|
10
10
|
このようなことをしてみたのですが、解決できず困っております。
|
11
11
|
何か解決方法をお教えいただけると幸いです。
|
12
|
-
よろしくお願いいたします。
|
12
|
+
よろしくお願いいたします。
|
13
|
+
|
14
|
+
実行時のコードは下記です。
|
15
|
+
```python
|
16
|
+
import sys
|
17
|
+
import re
|
18
|
+
import datetime
|
19
|
+
import pandas as pd
|
20
|
+
import os
|
21
|
+
import shutil
|
22
|
+
import csv
|
23
|
+
import math
|
24
|
+
import numpy as np
|
25
|
+
from halo import Halo
|
26
|
+
|
27
|
+
@Halo(text='Loading', spinner='dots')
|
28
|
+
def create(outputconfigfile):
|
29
|
+
with open(outputconfigfile, 'w') as f:
|
30
|
+
|
31
|
+
print("!", file=f)
|
32
|
+
|
33
|
+
|
34
|
+
create("test.txt")
|
35
|
+
```
|
36
|
+
|
37
|
+
import pandas as pdかfrom halo import Haloを削除するとエラーは出なくなります。
|
38
|
+
(関数内で実際にはdataframeを処理していたりしますが、上記コードでも同様のエラーが出ます)
|
39
|
+
またこのエラーが出ても出力結果は問題ないです。
|