回答編集履歴

1

改善

2017/09/05 12:18

投稿

NCC1701
NCC1701

スコア1680

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+|,|\?', script)
9
+ result = re.findall('\w+|[,?]', script)
10
10
 
11
11
  print(result)
12
12