質問編集履歴
2
;oiuygtf678y9iopkl
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
```ここに言語を入力
|
2
|
-
|
3
|
-
コード
|
4
2
|
|
5
3
|
if __name__=="__main__":
|
6
4
|
|
7
5
|
temp = dict()
|
8
|
-
|
9
|
-
|
10
6
|
|
11
7
|
for file in sorted(glob.glob("a/*.csv")):
|
12
8
|
|
@@ -20,9 +16,9 @@
|
|
20
16
|
|
21
17
|
line_data_arr = [s for s in line.split(",") if s != ""]
|
22
18
|
|
23
|
-
if len(line_data_arr) ==
|
19
|
+
if len(line_data_arr) == 4:
|
24
20
|
|
25
|
-
#
|
21
|
+
#print(line_data_arr)
|
26
22
|
|
27
23
|
temp[file].append(line_data_arr)
|
28
24
|
|
@@ -31,6 +27,16 @@
|
|
31
27
|
for file, S in temp.items():
|
32
28
|
|
33
29
|
#print("{} :\n{}\n".format(file, S))
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
#print(S)
|
34
|
+
|
35
|
+
#print([ [ [e] for e in x ] for x in itertools.chain.from_iterable( temp.values() ) ])
|
36
|
+
|
37
|
+
S=[ [[e] for e in x ] for x in itertools.chain.from_iterable( temp.values() ) ]
|
38
|
+
|
39
|
+
print(S)
|
34
40
|
|
35
41
|
```
|
36
42
|
|
1
g字脱字
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
[['13','103','1003','10003'],['14','104','1004','10004']]
|
48
48
|
|
49
|
-
ですが
|
49
|
+
ですがこう出力させたいんです
|
50
50
|
|
51
51
|
[[['10'],['100'],['1000'],['10000']]
|
52
52
|
|