随笔 - 203  文章 - 11  评论 - 15  阅读 - 81万
02 2013 档案
python的加密模块(md5,sha,crypt)学习
摘要:md5(Message-Digest Algorithm 5) 模块用于计算信息密文(信息摘要),得出一个128位的密文。sha模块跟md5相似,但生成的是160位的签名。使用方法是相同的。如下实例是使用md5的:# /usr/bin/python# -*- coding:utf-8 -*-import base64try: import hashlib hash = hashlib.md5()except ImportError: # for Python << 2.5 import md5 hash = md5.new()hash.update('spam,s... 阅读全文
posted @ 2013-02-20 19:41 mingaixin 阅读(19975) 评论(0) 推荐(1) 编辑
DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5的解决办法
摘要:今天在学习python的md5模块的时候,做练习,遇到DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5的警告;# /usr/bin/python# -*- coding:utf-8 -*-import md5hash = md5.new()hash.update('spam,spam,and egges')print repr(hash.digest())执行结果为:解决办法:# /usr/bin/python# -*- coding:utf-8 -*-try: im 阅读全文
posted @ 2013-02-20 16:09 mingaixin 阅读(5162) 评论(0) 推荐(0) 编辑
EditPlus如何设置——自动换行
摘要:在EditPlus里可以 自动换行 但是每次进入的时候都不会默认选中,觉得可能是个BUG,自动换行的状态没有保存在设置文件中,经过寻找在setting.ini里有记录:找到:将Word Wrap改为=1。自动换行:Word Wrap=1自动换行默认选中自动缩进:Auto Indent=0自动缩进默认不选==========================工具->参数->设置与语法->自动换行->选中,启动时自动换行快捷键在用editplus编辑时,遇到自动换行,使用ctrl+shift+w取消! 阅读全文
posted @ 2013-02-19 13:38 mingaixin 阅读(3609) 评论(0) 推荐(0) 编辑
设置让EditPlus不产生BAK文件
摘要:工具里的参数选项,然后弹出一个对话框,左边点文件,把保存文件时备份文件的选项取消,别勾选上,然后确定,就可以了 阅读全文
posted @ 2013-02-19 13:37 mingaixin 阅读(1001) 评论(0) 推荐(0) 编辑
python的keyword模块
摘要:python的keywrod 模块很简单。Help on module keyword:NAME keyword - Keywords (from "graminit.c")FILE /usr/lib64/python2.6/keyword.pyDESCRIPTION This file is automatically generated; please don't muck it up! To update the symbols in this file, 'cd' to the top directory of the python sour 阅读全文
posted @ 2013-02-04 14:46 mingaixin 阅读(5949) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示