Discuss / Python / 第一题

第一题

Topic source
import hashlibdef login(user, password):     md5=hashlib.md5()     md5.update(password.encode('utf-8'))     if db[user]==md5.hexdigest():         return True     else:         return False

  • 1

Reply