In <[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) Even easier: multiply the string by a number. In [12]: 'a' * 5 Out[12]: 'aaaaa' Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list