質問編集履歴

1

エラーが出たコードを追記しました。

2019/08/01 06:43

投稿

Nats91115796
Nats91115796

スコア7

test CHANGED
File without changes
test CHANGED
@@ -60,6 +60,40 @@
60
60
 
61
61
 
62
62
 
63
+
64
+
65
+ #以下エラーが出たコード
66
+
67
+ import os
68
+
69
+ os.getcwd
70
+
71
+
72
+
73
+ import glob
74
+
75
+ import pickle
76
+
77
+ from natsort import natsorted
78
+
79
+
80
+
81
+ File=natsorted(glob.glob('./*.binaryfile'))
82
+
83
+ File=[os.path.basename(r) for r in File]
84
+
85
+ FileNum=len(File)
86
+
87
+ Name=[0]*FileNum
88
+
89
+ for m in range(0,FileNum):
90
+
91
+ name,ext=os.path.splitext(File[m])
92
+
93
+ Name[m]=name
94
+
95
+
96
+
63
97
  ```
64
98
 
65
99
 
@@ -70,6 +104,8 @@
70
104
 
71
105
  natsortを試してみましたがsyntaxErrorが出てしまいました。
72
106
 
107
+ natsortはAnaconda3¥pkgsにインストールされています。
108
+
73
109
 
74
110
 
75
111
  ### 補足情報(FW/ツールのバージョンなど)