2006年10月31日 星期二 10:44
谢谢! -----邮件原件----- 发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 Roger Zheng 发送时间: 2006年10月31日 10:34 收件人: python-chinese在lists.python.cn 主题: Re: [python-chinese]求助:十进制转二进制代码怎么写 def bin(n) : assert type(n) == type(1) result = '' while n != 0 : result = str(n % 2) + result n = n / 2 return result 用google搜索,很多哈 On 10/31/06, 王明 <mingwang在iflytek.com> wrote: > > > > 十进制数32转成二进制数,要求转成为字符形式'00100000',有好用的函数吗? > > 谢谢! > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > -- Regards! Roger Zheng _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年10月31日 星期二 20:45
请把"答复"改成"Re" On 10/31/06, 王明 <mingwang在iflytek.com> wrote: > > 谢谢! > -----邮件原件----- > 发件人: python-chinese-bounces在lists.python.cn [mailto: > python-chinese-bounces在lists.python.cn] 代表 Roger Zheng > 发送时间: 2006年10月31日 10:34 > 收件人: python-chinese在lists.python.cn > 主题: Re: [python-chinese]求助:十进制转二进制代码怎么写 > > def bin(n) : > assert type(n) == type(1) > result = '' > while n != 0 : > result = str(n % 2) + result > n = n / 2 > return result > > > 用google搜索,很多哈 > > On 10/31/06, 王明 <mingwang在iflytek.com> wrote: > > > > > > > > 十进制数32转成二进制数,要求转成为字符形式'00100000',有好用的函数吗? > > > > 谢谢! > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to > > python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request在lists.python.cn > > Detail Info: > > http://python.cn/mailman/listinfo/python-chinese > > > > > -- > Regards! > > Roger Zheng > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -- Linker M Lin linkerlin88在gmail.com ※※※※※※※※※ ※※我思故我在※※ ※※※※※※※※※ -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20061031/f3f1aca5/attachment.htm
Zeuux © 2025
京ICP备05028076号