回答編集履歴
1
test
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
joinを使います
|
2
|
-
|
3
1
|
```
|
4
2
|
|
5
3
|
import re
|
@@ -16,14 +14,10 @@
|
|
16
14
|
|
17
15
|
'''
|
18
16
|
|
19
|
-
print(t)
|
20
17
|
|
21
|
-
f=t.split()
|
22
18
|
|
23
|
-
|
19
|
+
r=[re.sub(r'\D', '', s) for s in t.split()]
|
24
20
|
|
25
|
-
r=re.sub(r'\D', '', t)
|
26
|
-
|
27
|
-
print(
|
21
|
+
print(r)
|
28
22
|
|
29
23
|
```
|