# -*- coding:utf-8 -*- class Solution: # s 源字符串 def replaceSpace(self, s): # write code here str='' for i in s: if i==' ': i = '%20' str=str+i return str
# -*- coding:utf-8 -*- class Solution: # s 源字符串 def replaceSpace(self, s): # write code here str='' for i in s: if i==' ': i = '%20' str=str+i return str