摘要: Python的logging模块 一、简单的将日志打印到屏幕 import logging logging.debug('This is debug message') logging.info('This is info message') logging.warning('This is war 阅读全文
posted @ 2017-10-29 19:01 xsan 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Python中hashlib模块 该模块主要用于数据加密。加密方式有md5、sha224、sha384、sha512、sha1、sha3_224、sha3_256、sha3_384、sha3_512等等加密方式。它通过一个函数,把任意长度的数据转换为一个长度固定的数据串(通常用16进制的字符串表示) 阅读全文
posted @ 2017-10-29 11:16 xsan 阅读(282) 评论(0) 推荐(0) 编辑