python - Flask TypeError: Expected bytes
PHPz
PHPz 2017-04-18 09:40:19
0
2
390
PHPz
PHPz

学习是最好的投资!

reply all(2)
小葫芦

Call this method manually generate_password_hash

It should be that the password data type passed in is wrong

伊谢尔伦

Str and Byte are different types in Python 3.

password_byte = password.encode('utf') #然后传入这个变量
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template