回答編集履歴

1

変数名変更

2019/12/04 13:11

投稿

shiracamus
shiracamus

スコア5406

test CHANGED
@@ -2,17 +2,17 @@
2
2
 
3
3
  langs_count = {'jp': 1, 'en': 3 }
4
4
 
5
- value = 'fr'
5
+ key = 'fr'
6
6
 
7
7
 
8
8
 
9
- if value in langs_count:
9
+ if key in langs_count:
10
10
 
11
- langs_count[value] += 1
11
+ langs_count[key] += 1
12
12
 
13
13
  else:
14
14
 
15
- langs_count[value] = 1
15
+ langs_count[key] = 1
16
16
 
17
17
 
18
18