回答編集履歴
1
追記
test
CHANGED
@@ -3,3 +3,31 @@
|
|
3
3
|
res = res.strip()
|
4
4
|
|
5
5
|
```
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
---
|
10
|
+
|
11
|
+
stripもreplaceも、結果を受け取らないと意味ないです。
|
12
|
+
|
13
|
+
```Python
|
14
|
+
|
15
|
+
>>> a = 'abc'
|
16
|
+
|
17
|
+
>>> a.replace('a', '')
|
18
|
+
|
19
|
+
'bc'
|
20
|
+
|
21
|
+
>>> print(a)
|
22
|
+
|
23
|
+
abc
|
24
|
+
|
25
|
+
>>>
|
26
|
+
|
27
|
+
>>> a = a.replace('a', '')
|
28
|
+
|
29
|
+
>>> print(a)
|
30
|
+
|
31
|
+
bc
|
32
|
+
|
33
|
+
```
|