回答編集履歴
1
変数名変更
test
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
langs_count = {'jp': 1, 'en': 3 }
|
4
4
|
|
5
|
-
|
5
|
+
key = 'fr'
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
if
|
9
|
+
if key in langs_count:
|
10
10
|
|
11
|
-
langs_count[
|
11
|
+
langs_count[key] += 1
|
12
12
|
|
13
13
|
else:
|
14
14
|
|
15
|
-
langs_count[
|
15
|
+
langs_count[key] = 1
|
16
16
|
|
17
17
|
|
18
18
|
|