TypeError: exchange_declare() got an unexpected keyword argument 'type'
原因应该为pika版本不同导致的用法不同,解决方法为把type换成exchange_type
channel.exchange_declare(exchange='direct_log',exchange_type='direct')
TypeError: exchange_declare() got an unexpected keyword argument 'type'
原因应该为pika版本不同导致的用法不同,解决方法为把type换成exchange_type
channel.exchange_declare(exchange='direct_log',exchange_type='direct')
转载于:https://www.cnblogs.com/z-x-y/p/10258272.html