On 16 avr, 12:03, "人言落日是天涯,望极天涯不见家" <[EMAIL PROTECTED]> wrote: > How to generate a continuous string, like this > "aaaaaaaaaaaaaaaaaaaaaaa" > the number of characters is dynamic. Is there a module or function > implement this string ? > such as: duplicate_string(char, num)
>>> "a"*10 'aaaaaaaaaa' >>> "a"*20 'aaaaaaaaaaaaaaaaaaaa' -- http://mail.python.org/mailman/listinfo/python-list