import hashlib def login(user, password): md5=hashlib.md5() md5.update(str(password).encode('utf-8')) return user in db and md5.hexdigest() == db[user]
Sign in to make a reply
船长杰克