回答編集履歴
3
ソース修正
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
score = [[s[0], int(s[1])] for s in [line.rstrip().split(' ') for line in f]]
|
12
12
|
|
13
|
-
print(score)
|
13
|
+
print(f'score = {score}')
|
14
14
|
|
15
15
|
|
16
16
|
|
2
ソース修正
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
score = [[s[0], int(s[1])] for s in [line.rstrip().split(' ') for line in f]]
|
12
12
|
|
13
|
-
|
13
|
+
print(score)
|
14
14
|
|
15
15
|
|
16
16
|
|
1
ソース修正
test
CHANGED
@@ -8,9 +8,9 @@
|
|
8
8
|
|
9
9
|
with open('test.txt', mode='r', encoding='utf-8') as f:
|
10
10
|
|
11
|
-
|
11
|
+
score = [[s[0], int(s[1])] for s in [line.rstrip().split(' ') for line in f]]
|
12
12
|
|
13
|
-
print(
|
13
|
+
print(score)
|
14
14
|
|
15
15
|
|
16
16
|
|