2006年10月31日 星期二 14:55
________________ Reply Header ________________ Subject: python-chinese 摘要, 卷 34, 发布 183 Author: python-chinese-request在lists.python.cn Date: 2006 十月 31 12.00 想在 python-chinese 邮件列表发言,请写信给: python-chinese在lists.python.cn 要订阅或者退订列表,可以访问万维网地址: http://python.cn/mailman/listinfo/python-chinese 或者可以向: python-chinese-request在lists.python.cn 发送主题或者正文为'help'的邮件。 您可以通过邮件地址: python-chinese-owner在lists.python.cn 联系到此列表的管理员。 当回信时,请给一个适当的标题,这样会比 "Re: Contents of python-chinese digest..."更清楚明白。 本日主题: 1. 请问如何得到当前系统所有盘符列表?windows系统 (jason python.nbfan) 2. Re: 请问各位大大,如何手动将.py文件编译为.pyc或者.pyo ( 马踏飞燕 ) 3. Re: 请问各位大大,如何手动将.py文件编译为.pyc或者.pyo ( 马踏飞燕 ) 4. 求助:十进制转二进制代码怎么写 (王明) 5. Re: 求助:十进制转二进制代码怎么写 (Roger Zheng) 6. 答复: 求助:十进制转二进制代码怎么写 (王明) 7. Re: 请问各位大大,如何手动将.py文件编译为.pyc或者.pyo (3751) 8. Re: 求助:十进制转二进制代码怎么写 (3751) 9. Re: 请问如何得到当前系统所有盘符列表?windows系统 (3751) ---------------------------------------------------------------------- Message: 1 Date: Tue, 31 Oct 2006 09:44:16 +0800 From: "jason python.nbfan" <python.nbfan在gmail.com> Subject: [python-chinese] 请问如何得到当前系统所有盘符列表?windows系统 To: python-chinese在lists.python.cn Message-ID: <76fd6afe0610301744j3889dd27vd076c2d801ecc580在mail.gmail.com> Content-Type: text/plain; charset="gb2312" 通上 -------------- 涓���ㄥ� -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20061031/3d088825/attachment.html ------------------------------ Message: 2 Date: Tue, 31 Oct 2006 10:02:17 +0800 From: " 马踏飞燕 " <honeyday.mj在gmail.com> Subject: Re: [python-chinese] 请问各位大大,如何手动将.py文件编译为.pyc或者.pyo To: python-chinese在lists.python.cn Message-ID: <767559b0610301802s3d54d18dx69d69708372104c6在mail.gmail.com> Content-Type: text/plain; charset=GB2312; format=flowed 2006/10/31, hailang_0512 <hailang_0512在163.com>: > python -O a1.py怎么没法编译啊,倒是把脚本直接运行了。我用的compile倒是可以。 > _______________________________________________ 看我之前的邮件。 a1.py只有一个import语句,是用来编译a.py的。运行的话可以出来a.pyo,而被运行的a1.py没有任何变化的。 ------------------------------ Message: 3 Date: Tue, 31 Oct 2006 10:05:38 +0800 From: " 马踏飞燕 " <honeyday.mj在gmail.com> Subject: Re: [python-chinese] 请问各位大大,如何手动将.py文件编译为.pyc或者.pyo To: python-chinese在lists.python.cn Message-ID: <767559b0610301805k314e93c5kf8fd14e33cd398c9在mail.gmail.com> Content-Type: text/plain; charset=GB2312; format=flowed 2006/10/31, limodou <limodou在gmail.com>: > 字节码可能是一样的,也许是去掉了象docstring之类的东西吧,不是很清楚。 > 可能吧,不过目前倒是没有看出来有何不同。 字节数一样,内容一样。搜索了半天也没发现有人说明白这个问题的。 ------------------------------ Message: 4 Date: Tue, 31 Oct 2006 10:32:58 +0800 From: 王明 <mingwang在iflytek.com> Subject: [python-chinese] 求助:十进制转二进制代码怎么写 To: <python-chinese在lists.python.cn> Message-ID: <E83C571A98E9F34A8C041FB9E4EC19D16B1B1E在mailserver.iflytek.com> Content-Type: text/plain; charset="gb2312" 十进制数32转成二进制数,要求转成为字符形式‘00100000’,有好用的函数吗? 谢谢! -------------- 涓���ㄥ� -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20061031/17133e3a/attachment.htm ------------------------------ Message: 5 Date: Tue, 31 Oct 2006 10:33:42 +0800 From: "Roger Zheng" <roger.zheng在gmail.com> Subject: Re: [python-chinese] 求助:十进制转二进制代码怎么写 To: python-chinese在lists.python.cn Message-ID: <6a2b50ea0610301833i43b91446m7ceb9013bcb8bead在mail.gmail.com> Content-Type: text/plain; charset=GB2312; format=flowed 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 ------------------------------ Message: 6 Date: Tue, 31 Oct 2006 10:44:29 +0800 From: 王明 <mingwang在iflytek.com> Subject: [python-chinese] 答复: 求助:十进制转二进制代码怎么写 To: <python-chinese在lists.python.cn> Message-ID: <E83C571A98E9F34A8C041FB9E4EC19D16B1B1F在mailserver.iflytek.com> Content-Type: text/plain; charset="gb2312" 谢谢! -----邮件原件----- 发件人: 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 ------------------------------ Message: 7 Date: Tue, 31 Oct 2006 10:49:11 +0800 From: 3751 <lwm3751在gmail.com> Subject: Re: [python-chinese] 请问各位大大,如何手动将.py文件编译为.pyc或者.pyo To: python-chinese在lists.python.cn Message-ID: <32fdbab30610301849i78a3f09ake7a4872524d1756d在mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed 是象limodou说的那样,文档里面有说明。 ------------------------------ Message: 8 Date: Tue, 31 Oct 2006 10:52:59 +0800 From: 3751 <lwm3751在gmail.com> Subject: Re: [python-chinese] 求助:十进制转二进制代码怎么写 To: python-chinese在lists.python.cn Message-ID: <32fdbab30610301852g7198936fve83d7700f4202c80在mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed 邮件列表里面早有讨论过了 http://groups.google.com/group/pythonzh/browse_frm/thread/a6d2e7751ec25ec8/a34afe730675fed7?lnk=st&q;=&rnum;=1#a34afe730675fed7 ------------------------------ Message: 9 Date: Tue, 31 Oct 2006 11:08:39 +0800 From: 3751 <lwm3751在gmail.com> Subject: Re: [python-chinese] 请问如何得到当前系统所有盘符列表?windows系统 To: python-chinese在lists.python.cn Message-ID: <32fdbab30610301908v16f60ecds675b1469a0f51ad6在mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed windows API GetLogicalDrives ------------------------------ _______________________________________________ python-chinese mailing list python-chinese在lists.python.cn http://python.cn/mailman/listinfo/python-chinese 结束python-chinese 摘要, 卷 34, 发布 183 ***********************************************
Zeuux © 2025
京ICP备05028076号