forked from v.moiseev/distributed-computing
Lab 4 ready
This commit is contained in:
11
tasks/klementeva-ja/lab_4/python4Lab/Tut1/send.py
Normal file
11
tasks/klementeva-ja/lab_4/python4Lab/Tut1/send.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import pika
|
||||
|
||||
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
|
||||
channel = connection.channel()
|
||||
|
||||
channel.queue_declare(queue='klementeva')
|
||||
|
||||
channel.basic_publish(exchange='',routing_key='klementeva',body='My name is Zhanna Klementeva from ISEbd-41!')
|
||||
print("Отправлено")
|
||||
|
||||
connection.close()
|
||||
Reference in New Issue
Block a user