Skip to content

Commit 49afd42

Browse files
committed
Merge pull request yidao620c#6 from Eskibear/patch-1
Update p11_strip_unwanted_characters.rst
2 parents 18027ad + b0646e8 commit 49afd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c02/p11_strip_unwanted_characters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
>>> s = ' hello world \n'
5050
>>> s = s.strip()
5151
>>> s
52-
'hello world'
52+
'hello world'
5353
>>>
5454
5555
如果你想处理中间的空格,那么你需要求助其他技术。比如使用 ``replace()`` 方法或者是用正则表达式替换。示例如下:

0 commit comments

Comments
 (0)