2006年09月03日 星期日 14:16
Pycrypto用法:
from Crypto.Cipher import DES
import binascii
obj = DES.new(binascii.a2b_hex('ce2c6e683baedac2'), DES.MODE_ECB) ciph = obj.encrypt(text) print binascii.b2a_hex(ciph)
运行结果:f6fc7308551022e7439393ce15dbe447
与使用java语言实现的DES加密结果不同。
java加密结果:f6fc7308551022e7439393ce15dbe4476aa0eb2fea96733a
java加密结果多出16个字符
-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 python-chinese-request在lists.python.cn
发送时间: 2006年9月3日 14:11
收件人: python-chinese在lists.python.cn
主题: python-chinese 摘要, 卷 33, 发布 13
想在 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. python程序员怎么找工作? ( 金晓峰 )
2. Re: 一个有关 pack 读文件的问题 ( 重山 )
3. Re: 关于import和名字空间 ( 理想 )
4. 答复: python-chinese 摘要, 卷 33, 发布 12 (于彦锋)
----------------------------------------------------------------------
Message: 1
Date: Sun, 3 Sep 2006 12:04:27 +0800
From: " 金晓峰 " <unixpy在gmail.com>
Subject: [python-chinese] python程序员怎么找工作?
To: python-chinese在lists.python.cn
Message-ID:
<9c5c52420609022104ge0ef6eeo2b6d93d3cd237296在mail.gmail.com>
Content-Type: text/plain; charset="gb2312"
�荩
%�炳殁魄(�*��W�wh滤�r�'�a���.m�槭���*^����'r�强j�r���:虞7�<征埚���碛M5��
------------------------------
Message: 2
Date: Sun, 3 Sep 2006 12:31:10 +0800 (CST)
From: " 重山 " <xtrgm623在163.com>
Subject: Re: [python-chinese] 一个有关 pack 读文件的问题
To: python-chinese在lists.python.cn
Message-ID: <44FA5A8E.000027.09719在bj163app21.163.com>
Content-Type: text/plain; charset="gb2312"
�K^期蕈V�H^��M:虞5捉5圳r�'r�钎�l�a�'E��'r�签i�
M4胼q陡&�蹼w(�k顾n��m,�6彝幢汁i��k顾b�+抵��y���ē���y�u谵菜Д��6彝闯m,u�
�y��Z��I�W�)gjg�g�y����
]�,i�z�⒏�h��y��i��f�m,��K��荽�]�,�'�ζ卩�9篆堍lm�蹲~�郾陡&���圯�8浦�Y缤40��'r��⑺lzwi守h�b��-�����殊m��.n������)薇贽��X���'ru'叉��z千v殪够�薅��'r�谦z�操b槽)守h��症�撷m�槭���ē��+-�棹���)薇��'r��⑺lzwi守h�b��-�����殊m��.n������)薇贽��X���'ru'叉��z千v殪够�薅��'r�谦z�操b槽)守h��症�撷m�槭���ē��+-�棹���)薇嵊0�.m�槭���*^����'r�强j�r���:虞7�q�w霏掸!��佶
------------------------------
Message: 3
Date: Sun, 3 Sep 2006 13:50:00 +0800
From: " 理想 " <shpycn在gmail.com>
Subject: Re: [python-chinese] 关于import和名字空间
To: python-chinese在lists.python.cn
Message-ID:
<fce8eba0609022250g6d350156x5705851437e70b1a在mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
" The global statement is a declaration which holds for the entire current
code block."
两个模块之间不能共享 global 数据
如果你只是希望 setz 能返回一个正确的结果当然是"非传到函数里面"
在06-9-3,May Lin <zivn.cn在gmail.com> 写道:
>
> *我在a.py里面定义了z = 8,b.py里面有个setz函数,里面gobal了z,然后把z+1,我在a.py里import了b,
> 并且调用了b.setz()函数,为什么会说全局变量z没有定义? *
> *难道非要传到函数里面才行么?有没有其他办法啊.*
>
> _______________________________________________
> 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
>
--
理想
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20060903/dfcc73ac/attachment.htm
------------------------------
Message: 4
Date: Sun, 3 Sep 2006 14:10:22 +0800
From: 于彦锋 <yuyf76在163.com>
Subject: [python-chinese] 答复: python-chinese 摘要, 卷 33,
发布 12
To: <python-chinese在lists.python.cn>
Message-ID: <000001c6cf1f$a4b9e5a0$461d460a在asiainfoyuyf>
Content-Type: text/plain; charset="utf-8"
Pycrypto用法:
from Crypto.Cipher import DES
import binascii
obj = DES.new(binascii.a2b_hex('ce2c6e683baedac2'), DES.MODE_ECB)
ciph = obj.encrypt(text)
print binascii.b2a_hex(ciph)
运行结果:f6fc7308551022e7439393ce15dbe447
与使用java语言实现的DES加密结果不同。
java加密结果:f6fc7308551022e7439393ce15dbe4476aa0eb2fea96733a
java加密结果多出16个字符
-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 python-chinese-request在lists.python.cn
发送时间: 2006年9月3日 12:00
收件人: python-chinese在lists.python.cn
主题: python-chinese 摘要, 卷 33, 发布 12
想在 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. 关于Tkinter (Xiao Liang)
2. Re: 大家都怎么跟踪开源软件的升级的? (Bruce Who)
3. Re: 大家都怎么跟踪开源软件的升级的? (James liu)
4. 用python在win32如何取得分区剩余空间? (lveax)
5. Re: 用python在win32如何取得分区剩余空间? (kakaryan)
6. Re: [OT,非技术话题] 介绍一个在线信息管理网站
( 晴天数码 )
7. Re:
【非技术】震惊!公司通缉离职员工?大家就业的时候一定要注意合同啊。
(0.706)
8. 关于import和名字空间 (May Lin)
----------------------------------------------------------------------
Message: 1
Date: Sat, 2 Sep 2006 18:53:50 +0800
From: "Xiao Liang" <liangxiaowz在gmail.com>
Subject: [python-chinese] 关于Tkinter
To: python-chinese <python-chinese在lists.python.cn>
Message-ID:
<37e8eb00609020353g162a7b42y690c75540f7ae149在mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
新学Python. 现在在捣鼓Tkinter.但是随机附带的文档说得不够深入。
同时文档上说Tkinter是建立在Tcl/Tk的基础上的。我是不是可以去看
一下Tcl/Tk的一些资料就可以知道更多关于Tkinter的操作 ?
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20060902/c2def7a3/attachment-0001.html
------------------------------
Message: 2
Date: Sat, 2 Sep 2006 19:36:55 +0800
From: "Bruce Who" <bruce.who.hk在gmail.com>
Subject: Re: [python-chinese]
大家都怎么跟踪开源软件的升级的?
To: python-chinese在lists.python.cn
Message-ID:
<c8dd1d2b0609020436g7c529091r81855c54a2a5fce5在mail.gmail.com>
Content-Type: text/plain; charset=GB2312; format=flowed
加入邮件列表,如果有新版本升级,一般都会有announcement的
On 8/31/06, HoLin <holin.he在gmail.com> wrote:
> 如题,有什么经验、方法的介绍一下吧。^_^
>
> --
> Regards
> HoLin
> _______________________________________________
> 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: 3
Date: Sat, 2 Sep 2006 20:11:46 +0800
From: "James liu" <liuping.james在gmail.com>
Subject: Re: [python-chinese]
大家都怎么跟踪开源软件的升级的?
To: python-chinese在lists.python.cn
Message-ID:
<5d5204510609020511h1b88631chf332108562b37cc0在mail.gmail.com>
Content-Type: text/plain; charset="gb2312"
maillist
2006/9/2, Bruce Who <bruce.who.hk在gmail.com>:
>
> 加入邮件列表,如果有新版本升级,一般都会有announcement的
>
> On 8/31/06, HoLin <holin.he在gmail.com> wrote:
> > 如题,有什么经验、方法的介绍一下吧。^_^
> >
> > --
> > Regards
> > HoLin
> > _______________________________________________
> > 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
-------------- 涓���ㄥ� --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20060902/7f30310c/attachment-0001.html
------------------------------
Message: 4
Date: Sat, 2 Sep 2006 13:28:03 +0000
From: lveax <lveax.m在gmail.com>
Subject: [python-chinese]
用python在win32如何取得分区剩余空间?
To: python-chinese在lists.python.cn
Message-ID:
<576dcbc20609020628o3a7b5b81pf8144428095a6861在mail.gmail.com>
Content-Type: text/plain; charset=GB2312; format=flowed
hey all
python 2.4,windows下如何取得分区大小和剩余空间?
OS模块下好像没有相关的函数.
还有一个问题,写tk界面程序时,如何才能不显示那个命令提示符窗口.
谢谢
------------------------------
Message: 5
Date: Sat, 2 Sep 2006 22:03:56 +0800
From: kakaryan <kakaryan在gmail.com>
Subject: Re: [python-chinese]
用python在win32如何取得分区剩余空间?
To: python-chinese在lists.python.cn
Message-ID:
<fbeea1d10609020703y37033ddaj6f1880e130795188在mail.gmail.com>
Content-Type: text/plain; charset="gb2312"
2006/9/2, lveax <lveax.m在gmail.com>:
>
> hey all
>
> python 2.4,windows下如何取得分区大小和剩余空间?
>
> OS模块下好像没有相关的函数.
>
> 还有一个问题,写tk界面程序时,如何才能不显示那个命令提示符窗口.
>
> 谢谢
> _______________________________________________
> 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
google一下diskfree.py
-------------- 涓���ㄥ� --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20060902/c0ca708f/attachment-0001.htm
------------------------------
Message: 6
Date: Sun, 3 Sep 2006 09:42:42 +0800
From: " 晴天数码 " <sqj48611375在gmail.com>
Subject: Re: [python-chinese] [OT,非技术话题]
介绍一个在线信息管理网站
To: python-chinese在lists.python.cn
Message-ID:
<5d891f3c0609021842i1203a50fhc4d0817267341f06在mail.gmail.com>
Content-Type: text/plain; charset="gb2312"
不错
-------------- 涓���ㄥ� --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20060903/459efce4/attachment-0001.html
------------------------------
Message: 7
Date: Sun, 3 Sep 2006 10:23:50 +0800
From: 0.706 <im0.706在gmail.com>
Subject: Re: [python-chinese]
【非技术】震惊!公司通缉离职员工?大家就业的时候一定要注意合同啊。
To: python-chinese在lists.python.cn
Message-ID:
<60af774c0609021923i56ea0b7gddc424fffc96af87在mail.gmail.com>
Content-Type: text/plain; charset="gb2312"
该公司的广大员工们,看到你们的未来了吗,还不趁早溜啊!
-------------- 涓���ㄥ� --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20060903/2ce44fc7/attachment.htm
------------------------------
Message: 8
Date: Sun, 3 Sep 2006 11:19:27 +0800
From: "May Lin" <zivn.cn在gmail.com>
Subject: [python-chinese] 关于import和名字空间
To: python-chinese在lists.python.cn
Message-ID:
<f6f105030609022019oa28a354hf0d4c6c7c932b15b在mail.gmail.com>
Content-Type: text/plain; charset="gb2312"
*我在a.py里面定义了z = 8,b.py里面有个setz函数,里面gobal了z,然后把z+1,我在a.py里import了b,
并且调用了b.setz()函数,为什么会说全局变量z没有定义? *
*难道非要传到函数里面才行么?有没有其他办法啊.*
-------------- 涓���ㄥ� --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20060903/00b902ee/attachment.html
------------------------------
_______________________________________________
python-chinese mailing list
python-chinese在lists.python.cn
http://python.cn/mailman/listinfo/python-chinese
结束python-chinese 摘要, 卷 33, 发布 12
**********************************************
------------------------------
_______________________________________________
python-chinese mailing list
python-chinese在lists.python.cn
http://python.cn/mailman/listinfo/python-chinese
结束python-chinese 摘要, 卷 33, 发布 13
**********************************************
2006年09月03日 星期日 16:17
§+a¢
2006年09月03日 星期日 16:38
> > 求一份关于python应用的详细分类列表! > http://www.python.org/about/apps/ http://www.python.org/about/success/ -------------- next part -------------- qÓ0¶µ§!éíÁ«,r»mçTD¸m¶ÿ§+a¢w'þ©z¹_éÊØhÈbëý«miÈfz{lÿm4ëOtßýµÕçú}ÏÚ¶Ög§·M4Öf
Zeuux © 2025
京ICP备05028076号