import hashlib phone_num = open("D:/testdata/phone10.txt","r") out_file = open("D:/testdata/after_md5.txt", "w") md5 = hashlib.md5() for line in phone_num: md5.update(line.encode('utf-8')) r = md5.hexdigest() out_file.write(r+'\n') out_file.close()
查看更多关于【小工具】2. 需要对测试用的数据进行MD5加密的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did126798