TypeError: string argument without an encoding

学习分布式进程时该书用的python2.x,代码为
manager = QueueManager(address=('127.0.0.1', 8001), authkey='qiye')
运行报错TypeError: string argument without an encoding
在python3中此处需要把字符串转换为字节型
manager = QueueManager(address=('127.0.0.1', 8001), authkey=bytes('qiye', encoding='utf-8'))

原文地址:https://www.cnblogs.com/3nohtyp/p/12695605.html