我们有代码,适用于 python 2 . @password.setter def password(self, value): self.salt = bcrypt.gensalt() self.passwd = bcrypt.hashpw(value.encode('utf-8'), ...
確定! 回上一頁