回答編集履歴
1
修正
answer
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
with open(r'./sample.txt') as fin:
|
6
6
|
src = fin.read()
|
7
7
|
|
8
|
-
dst = re.findall(r'
|
8
|
+
dst = re.findall(r'\bI\W(\w+)', src)
|
9
9
|
print(dst)
|
10
10
|
```
|
11
11
|
|
12
|
-
**実行結果** [Wandbox](https://wandbox.org/permlink/
|
12
|
+
**実行結果** [Wandbox](https://wandbox.org/permlink/zwEfC799nmldHiM5)
|
13
13
|
```
|
14
14
|
['am', 'am', 'can']
|
15
15
|
```
|