add #5 python implement

This commit is contained in:
haiker2011 2018-09-25 17:28:14 +08:00
parent 1ac3cb20a0
commit 3533f7a40c

View File

@ -323,10 +323,18 @@ public String replaceSpace(StringBuffer str) {
}
```
```python
target = input()
print (target.replace(" ", "%20"))
```
```python
```
# 参考文献
- 何海涛. 剑指 Offer[M]. 电子工业出版社, 2012.