python3 的str就是unicode,只有encode函数,调用encode返回的是bytes。 bytes只有decode函数,调用decode返回的是str。 转载于:https://www.cnblogs.com/catmelo/p/6206583.html