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()

相关文章:

  • 2022-12-23
  • 2021-05-07
  • 2021-09-15
  • 2021-09-23
  • 2021-10-20
  • 2021-09-09
  • 2021-11-13
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2021-08-26
  • 2022-03-01
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案