我已经在Python中编写了一个代码,用于检查文件中的MD5,并确保MD5与原始文件匹配。 这是我开发的: #Defines filename filename = "file.exe" #Gets MD5 from file def getmd5(filename): return m.hexdigest() md5 = dict() for fname in filename: md5[fname] = getmd5(fname) #If statement for alerting the user whether the checksum passed or failed if md5 == '>md5 will go here<': print("MD5 Checksum passed. You may now …