回答編集履歴

3

微修正

2019/01/31 07:06

投稿

firedfly
firedfly

スコア1131

test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  ```Python
14
14
 
15
- matchedList = re.findall(pattern, text)
15
+ matchedList = re.findall(absobe_pattern_history, text)
16
16
 
17
17
  if len(matchedList):
18
18
 

2

条件を追記

2019/01/31 07:06

投稿

firedfly
firedfly

スコア1131

test CHANGED
@@ -12,9 +12,11 @@
12
12
 
13
13
  ```Python
14
14
 
15
- if 条件:
15
+ matchedList = re.findall(pattern, text)
16
16
 
17
+ if len(matchedList):
18
+
17
- results_hi.append()
19
+ results_hi.append(matchedList)
18
20
 
19
21
  results_t.append()
20
22
 

1

わかりやすく

2019/01/31 07:06

投稿

firedfly
firedfly

スコア1131

test CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
 
4
4
 
5
+ if文の条件として`results_hi.append()`を書いてありますが
6
+
5
- `results_hi.append()`の返り値は常に`None`ですので、if文の中に入りません。
7
+ `append()`の返り値は常に`None`ですので、if文の中に入りません。
6
8
 
7
9
  下のように書きましょう。
8
10