From 3533f7a40caa1d1bba1e7364be8a38d13989e2af Mon Sep 17 00:00:00 2001 From: haiker2011 Date: Tue, 25 Sep 2018 17:28:14 +0800 Subject: [PATCH] add #5 python implement --- notes/面试总结.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/notes/面试总结.md b/notes/面试总结.md index 364f88da..f7efa4e3 100644 --- a/notes/面试总结.md +++ b/notes/面试总结.md @@ -323,10 +323,18 @@ public String replaceSpace(StringBuffer str) { } ``` +```python +target = input() + +print (target.replace(" ", "%20")) +``` + ```python ``` + + # 参考文献 - 何海涛. 剑指 Offer[M]. 电子工业出版社, 2012.