回答編集履歴
1
改善
answer
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
import re
|
3
3
|
|
4
4
|
script = "This is not a pen, is it?"
|
5
|
-
result = re.findall('\w+|,
|
5
|
+
result = re.findall('\w+|[,?]', script)
|
6
6
|
print(result)
|
7
7
|
```
|