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