accounts = {"key":"value","thy":"l23","user2":"psw2"}
a = input("Enter username: ")
b = input("Enter password: ")
if accounts[a:b] == True:
print("Welcome")
TypeError: unhashable type: 'slice'
是什么错误呢?我该如何解决它?“TypeError:unhashable type:'slice'”是什么意思?我该如何解决它?
是的!感谢您的帮助!非常有帮助 – trippt02