回答編集履歴

1

.

2019/04/13 07:47

投稿

tachikoma
tachikoma

スコア3601

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  item = dic.get("test")
8
8
 
9
- if item and len(item.strip()):
9
+ if item and item.strip():
10
10
 
11
11
  test = item
12
12
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  item = dic.get("test")
28
28
 
29
- if (item is not None) and (len(item.strip()) != 0):
29
+ if (item is not None) and (item.strip() != ""):
30
30
 
31
31
  test = item
32
32