回答編集履歴

2

いろいろ間違ってた。ごめんなさい

2018/05/24 15:36

投稿

hayataka2049
hayataka2049

スコア30933

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  # ただし型判定は別途行う(andで組み合わせる)必要があります
16
16
 
17
- if all_fetch_data:
17
+ if not all_fetch_data:
18
18
 
19
19
 
20
20
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  # 方法4:方法3の改良版。0の真偽値がFalse, 0以外の真偽値がTrueであることを利用
28
28
 
29
- if len(all_fetch_data):
29
+ if not len(all_fetch_data):
30
30
 
31
31
 
32
32
 

1

方法6を修正

2018/05/24 15:36

投稿

hayataka2049
hayataka2049

スコア30933

test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
 
38
38
 
39
- # 方法:方法4と同様。can110さんの回答と同じです。
39
+ # 方法6:方法5と同様。can110さんの回答と同じです。
40
40
 
41
41
  if isinstance(all_fetch_data, list) and len(all_fetch_data) == 0:
42
42