2005年12月12日 星期一 22:30
如题, 应该有的吧?! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20051212/5651214f/attachment.html
2005年12月12日 星期一 22:36
在 05-12-12,ONE_Fox<onefox.fox at gmail.com> 写道: > 如题, 应该有的吧?! import md5 -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit
2005年12月13日 星期二 08:57
python本身就带呀
For example, to obtain the digest of the string
'Nobody inspects the spammish repetition':
>>> import md5
>>> m = md5.new()
>>> m.update("Nobody inspects")
>>> m.update(" the spammish repetition")
>>> m.digest()
'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
More condensed:
>>> md5.new("Nobody inspects the spammish
repetition").digest()
'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
http://www.python.org/doc/2.4.2/lib/module-md5.html
--- ONE_Fox <onefox.fox at gmail.com>写道:
> 如题, 应该有的吧?!
> > _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
http://python.cn/mailman/listinfo/python-chinese
___________________________________________________________
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com
Zeuux © 2025
京ICP备05028076号