摘要: hashlib模块 ''' 1 什么是hash hash是一种算法,该算法接受传入的内容,经过运算得到一串hash值 如果把hash算法比喻为一座工厂 那传给hash算法的内容就是原材料 生成的hash值就是生产出的产品 2、为何要用hash算法 hash值/产品有三大特性: 1、只要传入的内容一样 阅读全文
posted @ 2018-06-25 17:04 谢金涛 阅读(108) 评论(0) 推荐(0) 编辑
摘要: re模块 import time def make_progress(percent,width=50): if percent > 1: percent=1 show_str=('[%%-%ds]' % width) % (int(percent * width) * '#') print('\r 阅读全文
posted @ 2018-06-25 16:57 谢金涛 阅读(229) 评论(0) 推荐(0) 编辑