'bytes' object has no attribute 'encode'

python3中,编码的时候区分了字符串和二进制
encode 改为 decode 就可以了

猜你喜欢

转载自blog.csdn.net/Da___Vinci/article/details/86559515