Commit dbb543bc authored by MVMolchanova's avatar MVMolchanova
Browse files

Upload New File

parent 2241ff51
import pika
import json
x = list(range(0, 101, 1))
y = []
for num in x:
a = num
z = [x, y]
json_string = json.dumps(z)
credentials = pika.PlainCredentials('Anton', 'Anton')
connection = pika.BlockingConnection(
pika.ConnectionParameters(host='', port=5672, virtual_host='/', credentials=credentials))
channel =
channel.basic_publish(exchange='', routing_key='Anton', body=json_string)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment