Discuss / Python / 作业1

作业1

Topic source

jhbbbbbbbbbbb

#1 Created at ... [Delete] [Delete and Lock User]
from hashlib import *

def login(user,password):
    if db[user]==md5(password.encode()).hexdigest():
        return True
    else:
        return False

  • 1

Reply