回答編集履歴
1
修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
```Python
|
4
4
|
|
5
|
-
lunch_dict = {me
|
5
|
+
lunch_dict = {name: 0 for name in name_lst}
|
6
6
|
|
7
7
|
```
|
8
8
|
|
@@ -16,8 +16,8 @@
|
|
16
16
|
|
17
17
|
for datum in data:
|
18
18
|
|
19
|
-
me
|
19
|
+
name, amount = datum
|
20
20
|
|
21
|
-
lunch_dict[me
|
21
|
+
lunch_dict[name] += int(amount)
|
22
22
|
|
23
23
|
```
|