def login(user, password): md5 = hashlib.md5() md5.update(password.encode('utf-8')) return db[user] == md5.hexdigest()
Sign in to make a reply
苏生不语_