描述:请实现一个函数,把字符串 s 中的每个空格替换成"%20"。
array
python无聊解法
class Solution: def replaceSpace(self, s: str) -> str: return s.replace(' ', '%20')