📜  zeromq 发布子示例 python 代码示例

📅  最后修改于: 2022-03-11 14:45:46.271000             🧑  作者: Mango

代码示例1
while True:
    topic = random.randrange(9999,10005)
    messagedata = random.randrange(1,215) - 80
    print "%d %d" % (topic, messagedata)
    socket.send("%d %d" % (topic, messagedata))
    time.sleep(1)