import hashlibimport sysreload(sys)sys.setdefaultencoding(‘utf-8‘) m = hashlib.md5()m.update(‘123456abc‘)pas = m.hexdigest()print pas
E:\work\venv\Scripts\python.exe E:/work/sj_zol/text.py df10ef8509dc176d733d59549e7dbfaf Process finished with exit code 0
原文地址:https://www.cnblogs.com/fanjp666888/p/8608383.html
时间: 2024-10-02 04:23:16