回答編集履歴
1
修正
test
CHANGED
@@ -32,13 +32,13 @@
|
|
32
32
|
|
33
33
|
path = "C:\Users\....\test.txt"
|
34
34
|
|
35
|
+
f = open(path)
|
36
|
+
|
35
|
-
n = sum([1 for _ in f]) #
|
37
|
+
n = sum([1 for _ in f]) # テキストファイルの行数
|
36
38
|
|
37
39
|
f.seek(0)
|
38
40
|
|
39
41
|
T = [0]*(n)
|
40
|
-
|
41
|
-
f = open(path)
|
42
42
|
|
43
43
|
T = f.readlines()
|
44
44
|
|