摘要: hashlib模块 加密的模块 import hashlib # 这个加密的过程是无法解密的 md = hashlib.sha3_256() # 生成一个帮你造密文的对象 # md.update('hello'.encode('utf-8')) # 往对象里传明文数据 update只能接受bytes 阅读全文
posted @ 2019-07-19 19:22 ليو 阅读(105) 评论(0) 推荐(0) 编辑
摘要: import os import sys BASEDIR = os.path.dirname(os.path.dirname(__file__)) PATH = os.path.join(BASEDIR, 'db') sys.path.append(PATH) import logging.conf 阅读全文
posted @ 2019-07-19 19:06 ليو 阅读(84) 评论(0) 推荐(0) 编辑