\api\crud.py", line 39, in get_LoginAttributeError: 'bytes' objecthas no attribute 'encode' 我得到的这个错误与Python语言中的Base64有关 这是我的core\users\login.py: @router.post("/login"
我正在尝试用python对pdf进行base64编码。有几个这样的答案对其他人有效,但不是在我这一端,因为某些原因。/cchilders/projects/myproject/data/books/software-and-mind.pdf', 'rb') as f: print(encoded)AttributeError<
这是错误:AttributeError: 'bytes' object has no attribute 'encode',请帮助。Local\Programs\Python\Python36\lib\site-packages\flask\app.py",行1799中,在bcrypt.hashpw(request.form'pass'.encode\app\run.py",第30行,在”如果登录“== self.view_functionsr
File "C:\Users\User\Desktop\abc\test.py", line 57, in upload_fileAttributeError: 'bytes' object has no attribute 'getPage' 如何修复AttributeError:'bytes‘对象没有属性'getP