摘要:
from multiprocessing import Pool def cal(item): n, mod = item res = 1 for i in range(2, n+1): res = res * i % mod return res if __name__ == "__main__" 阅读全文
摘要:
import hashlib def md5sum(filename, blocksize=65536): hash = hashlib.md5() with open(filename, "rb") as f: for block in iter(lambda: f.read(blocksize) 阅读全文