python 文件的md5

參考http://blog.csdn.net/csapr1987/article/details/7633239python 簡單模式spa from hashlib import md5   def md5_file(name): m = md5() a_file = open(name, 'rb') #須要使用二進制格式讀取文件內容 m.update(a_file.read()) a_file
相關文章
相關標籤/搜索