python MD5 import hashlib func = lambda x: hashlib.md5(x).hexdigest() if __name__ == '__name__': print func('123') 拓展: MD5加密算法原理及實(shí)現(xiàn)