回答編集履歴
1
改善
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
script = "This is not a pen, is it?"
|
8
8
|
|
9
|
-
result = re.findall('\w+|,
|
9
|
+
result = re.findall('\w+|[,?]', script)
|
10
10
|
|
11
11
|
print(result)
|
12
12
|
|