在设置消息广播时:以下代码会报错
channel.exchange_declare(exchange='direct_logs',
type='direct')
TypeError: exchange_declare() got an unexpected keyword argument 'type'
可能给python3.6 type 是关健字 后改成:
channel.exchange_declare(exchange='logs', exchange_type='fanout')
就解决了
转载于:https://www.cnblogs.com/fgxwan/p/9662037.html