2005年02月01日 星期二 16:12
chr(i)*i 如: >>> chr(45)*45 '---------------------------------------------' ----- Original Message ----- From: "haiwen xiao" <overtime at 126.com> To: <python-chinese at lists.python.cn> Sent: Tuesday, February 01, 2005 4:00 PM Subject: [python-chinese] 再问一个关于字符串处理的问题 Python-chinese: 我想根据一整数,生成一为单一字符的字符串,如字符为“-”,整数为10,想生成"----------"这样的字符串,有没有什么简单的方法? 谢谢! haiwen xiao overtime at 126.com 2005-02-01 _______________________________________________ python-chinese list python-chinese at lists.python.cn http://python.cn/mailman/listinfo/python-chinese
2005年02月01日 星期二 16:23
Frank,您好! 非常感谢! 还有superisaac。 ======= 2005-02-01 16:12:00 您在来信中写道:======= >chr(i)*i >如: >>>> chr(45)*45 >'---------------------------------------------' > > >----- Original Message ----- >From: "haiwen xiao" <overtime at 126.com> >To: <python-chinese at lists.python.cn> >Sent: Tuesday, February 01, 2005 4:00 PM >Subject: [python-chinese] 再问一个关于字符串处理的问题 > > >Python-chinese: > > 我想根据一整数,生成一为单一字符的字符串,如字符为“-”,整数为10,想生成"----------"这样的字符串,有没有什么简单的方法? > > 谢谢! > > > haiwen xiao > overtime at 126.com > 2005-02-01 > > > >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese = = = = = = = = = = = = = = = = = = = = 致 礼! haiwen xiao overtime at 126.com 2005-02-01
Zeuux © 2025
京ICP备05028076号