質問編集履歴

2

プログラム修正

2020/10/19 23:57

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -18,17 +18,23 @@
18
18
 
19
19
    result = get_userList(department)
20
20
 
21
- //【1回目のループ】name : tanakaのレコードを取得される
22
21
 
23
-   //【2回目のループ】name : tanakaのレコードを取得される
24
22
 
23
+ //name : tanaka
24
+
25
-   for name in result['name']:
25
+   name = result['name']
26
+
27
+
28
+
29
+ //feature[age,country]
30
+
31
+   for feature result['feature']:
26
32
 
27
33
      //id: 'age', value : 22のレコードを取得される。
28
34
 
29
35
      //id: 'country', value : 'japan'のレコードを取得される。
30
36
 
31
- result = getValue(name)
37
+ result = getValue(feature)
32
38
 
33
39
 
34
40
 

1

プログラム修正

2020/10/19 23:57

投稿

pokemonta
pokemonta

スコア170

test CHANGED
File without changes
test CHANGED
@@ -14,11 +14,19 @@
14
14
 
15
15
  ```python
16
16
 
17
- //name=tanakaのレコードを取得
17
+   //部署名渡すと部署に関係する情報が取得され
18
18
 
19
-   for name in result['List']:
19
+   result = get_userList(department)
20
20
 
21
-     //さらにtanakaが持つプロパティを1レコードずつ取得
21
+ //【1回目のループ】name : tanakaレコード取得される
22
+
23
+   //【2回目のループ】name : tanakaのレコードを取得される
24
+
25
+   for name in result['name']:
26
+
27
+     //id: 'age', value : 22のレコードを取得される。
28
+
29
+     //id: 'country', value : 'japan'のレコードを取得される。
22
30
 
23
31
  result = getValue(name)
24
32