teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

プログラム修正

2020/10/19 23:57

投稿

pokemonta
pokemonta

スコア170

title CHANGED
File without changes
body CHANGED
@@ -8,12 +8,15 @@
8
8
  ```python
9
9
    //部署名を渡すと部署に関係する情報が取得される。
10
10
    result = get_userList(department)
11
+
11
- //【1回目のループ】name : tanakaのレコードを取得される
12
+ //name : tanaka
12
-   //【2回目のループ】name : tanakaのレコードを取得される
13
-   for name in result['name']:
13
+   name = result['name']
14
+
15
+ //feature[age,country]
16
+   for feature result['feature']:
14
17
      //id: 'age', value : 22のレコードを取得される。
15
18
      //id: 'country', value : 'japan'のレコードを取得される。
16
- result = getValue(name)
19
+ result = getValue(feature)
17
20
 
18
21
  dict1 = {
19
22
  'name' : name,

1

プログラム修正

2020/10/19 23:57

投稿

pokemonta
pokemonta

スコア170

title CHANGED
File without changes
body CHANGED
@@ -6,9 +6,13 @@
6
6
  ・propery自体は、1レコードずつ取得する必要があります。
7
7
 
8
8
  ```python
9
+   //部署名を渡すと部署に関係する情報が取得される。
10
+   result = get_userList(department)
9
- //name=tanakaのレコードを取得
11
+ //【1回目のループ】name : tanakaのレコードを取得され
12
+   //【2回目のループ】name : tanakaのレコードを取得される
10
-   for name in result['List']:
13
+   for name in result['name']:
11
-     //さらにtanakaが持つプロパティを1レコードずつ取得
14
+     //id: 'age', value : 22のレコード取得される。
15
+     //id: 'country', value : 'japan'のレコードを取得される。
12
16
  result = getValue(name)
13
17
 
14
18
  dict1 = {