1.生产者#!/usr/bin/env python import pika import json# https://www.rabbitmq.com/tutorials/tutorial-one-python.html 官方文档connection = pika.BlockingConnection(pika.ConnectionParameters(localhost)) channel = connection.channel() channel.queue_declare(queue=hello)message=json.dumps({OrderId:"1000"}) channel.basic_publish(exchange=,routing_key=hello,body=message) #print(" [x] Sent Hello World! 2020"...