题目描述:
代码:
class Solution(object):
def replaceSpace(self, s):
list=s.split(" ")
s=''
for i in range(len(list)-1):
s+=list[i]
s+='%20'
s+=list[len(list)-1]
return s
题目描述:
代码:
class Solution(object):
def replaceSpace(self, s):
list=s.split(" ")
s=''
for i in range(len(list)-1):
s+=list[i]
s+='%20'
s+=list[len(list)-1]
return s