Index ¦ Archives > Category: Blog

试试看Python代码块

刚才调整了一下代码块的显示,现在决定写一点Python测试代码来试试看效果

"""
Complex example which is a combination of the rr* examples from the zguide.
"""
from gevent.monkey import patch_all
patch_all()

from gevent import spawn
import zmq.green as zmq

# server
context = zmq.Context()
socket = context.socket(zmq.REP)
socket.connect("tcp://localhost:5560")

def serve(socket):
    while True:
        message …

啊呀这个代码块好难看

我发现这个主题的代码块有点难看,还是github的好看一点。。看看到时候有空抄一把。

© yanqing.wang. Built using Pelican. Theme by Giulio Fidente on github.