回答編集履歴

1

サンプルを複数リストに変更

2018/09/23 09:11

投稿

opyon
opyon

スコア1009

test CHANGED
@@ -10,13 +10,15 @@
10
10
 
11
11
  ```Python3
12
12
 
13
+ import sys
13
14
 
15
+ print(sys.version)
14
16
 
15
- hoge_list = ['hoge']
17
+ hoge_list = ['hoge1','hoge2']
16
18
 
17
- fuga_list = ['fuga']
19
+ fuga_list = ['fuga1','fuga2']
18
20
 
19
- piyo_list = ['piyo']
21
+ piyo_list = ['piyo1','piyo2']
20
22
 
21
23
 
22
24
 
@@ -30,9 +32,9 @@
30
32
 
31
33
 
32
34
 
33
- def get_account(x, client, _id):
35
+ def get_account(y, client, _id):
34
36
 
35
- print('test:',x, client, _id)
37
+ print('test:',y, client, _id)
36
38
 
37
39
 
38
40
 
@@ -40,11 +42,13 @@
40
42
 
41
43
  for x in src_list:
42
44
 
43
- culculation = get_account(x, client, _id)
45
+ for y in x:
44
46
 
45
- if culculation is not None:
47
+ culculation = get_account(y, client, _id)
46
48
 
49
+ if culculation is not None:
50
+
47
- not_list.append(culculation)
51
+ not_list.append(culculation)
48
52
 
49
53
 
50
54
 
@@ -58,11 +62,17 @@
58
62
 
59
63
  ```
60
64
 
61
- test: ['hoge'] 0 0
65
+ test: hoge1 0 0
62
66
 
63
- test: ['fuga'] 0 0
67
+ test: hoge2 0 0
64
68
 
69
+ test: fuga1 0 0
70
+
71
+ test: fuga2 0 0
72
+
73
+ test: piyo1 0 0
74
+
65
- test: ['piyo'] 0 0
75
+ test: piyo2 0 0
66
76
 
67
77
 
68
78