Skip to content

Latest commit

 

History

History
6 lines (3 loc) · 185 Bytes

ReplaceSpaces.md

File metadata and controls

6 lines (3 loc) · 185 Bytes

替换空格

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

思路分析