Is this what you want? py> s = 'This string contains two times - end' py> print s.replace(' ', ' '*6) This string contains two times - end
see http://docs.python.org/lib/string-methods.html On Oct 30, 6:26 pm, "一首诗" <[EMAIL PROTECTED]> wrote: > Is there any simple way to solve this problem? -- http://mail.python.org/mailman/listinfo/python-list