替换空格

题目:请实现一个函数,把字符串中的每个空格替换成 "%20"。例如输入 "We are happy.",则输出 "We%20are%20happy."。

 

posted @ 2016-09-11 19:36  BelFuture  阅读(175)  评论(0编辑  收藏  举报
The horizon of life is broadened chiefly by the enlargement of the heart.