005.替换字符串

s = 'we are happy'
s = s.replace(' ','%20')
print s
s = 'we are happy'
s = s.replace(' ','%20')
print s

  

原文地址:https://www.cnblogs.com/wanyp/p/10065561.html