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
时间: 2024-11-26 04:54:57