回答編集履歴
3
微修正
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
条件を追記
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
わかりやすく
test
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
if文の条件として`results_hi.append()`を書いてありますが
|
6
|
+
|
5
|
-
`
|
7
|
+
`append()`の返り値は常に`None`ですので、if文の中に入りません。
|
6
8
|
|
7
9
|
下のように書きましょう。
|
8
10
|
|