摘要: 这个模块 支持的hash加密种类'md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512'使用是也是比较简单来着。EX:import hashlibm = hashlib.md5()m.update("abcedfg")m.update("gfedcb... 阅读全文
posted @ 2015-05-09 19:28 DraugSolo 阅读(106) 评论(0) 推荐(0)
摘要: optparse 模块 类似unix c命令行的设置__author__ = 'Zechary'import optparseparse = optparse.OptionParser(usage='"usage:%prog [options] arg1, arg2"', version="%pro... 阅读全文
posted @ 2015-05-09 13:26 DraugSolo 阅读(159) 评论(0) 推荐(0)
摘要: os模块包含操作系统功能,类似unix c的api。主要包含:def ctermid(): """Return the filename corresponding to the controlling terminal of the process. :rtype: string... 阅读全文
posted @ 2015-05-09 08:05 DraugSolo 阅读(128) 评论(0) 推荐(0)