import hashlib a = "81228"m = hashlib.md5()m.update(a.encode('utf-8'))print(m.hexdigest()) 这里的参数必须为bytes类型 相关文章: 2021-06-09 2022-01-02 2022-12-23 2022-12-23 2021-11-30 2022-12-23 2022-12-23