回答編集履歴

1

元のコードに合わせる

2020/03/26 18:51

投稿

shiracamus
shiracamus

スコア5406

test CHANGED
@@ -6,13 +6,13 @@
6
6
 
7
7
  #電話番号複数対策
8
8
 
9
- tels = output[2]
9
+ list_tell = output[2].split(",")
10
10
 
11
11
  #複数の場合で分岐
12
12
 
13
- if ',' in tels:
13
+ if len(list_tell) > 1:
14
14
 
15
- list_output = [[*output[:2], tel] for tel in tels.split(',')]
15
+ list_output = [[*output[:2], tel] for tel in list_tell]
16
16
 
17
17
  else:
18
18