回答編集履歴
1
追加説明
answer
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
with open('path') as f:
|
2
2
|
f = [list(map(lambda x:int(x), i.split())) for i in f.read().splitlines()]
|
3
3
|
|
4
|
-
でfを書き換えているからです。
|
4
|
+
でfを書き換えているからです。
|
5
|
+
|
6
|
+
with open('path') as file:
|
7
|
+
f = [list(map(lambda x:int(x), i.split())) for i in file.read().splitlines()]
|
8
|
+
|
9
|
+
などに変更しましょう。
|