题目
原文:
Write a method to replace all spaces in a string with ‘%20’.
译文:
写一个函数,把字符串中所有的空格替换为%20 。
def string(x):
return x.replace(' ','20%')
2014-9-15
原文:
Write a method to replace all spaces in a string with ‘%20’.
译文:
写一个函数,把字符串中所有的空格替换为%20 。
def string(x):
return x.replace(' ','20%')
2014-9-15