Skip to content

Instantly share code, notes, and snippets.

View 631068264's full-sized avatar
🤪
I may be slow to respond.

wyx 631068264

🤪
I may be slow to respond.
View GitHub Profile
@631068264
631068264 / gist:68929298612d8103234e12c4f2985aad
Created April 13, 2017 01:22 — forked from mdbecker/gist:1309633
multiprocess && gevent example
from multiprocessing import Pool as MPool
from time import sleep
import datetime
import multiprocessing
import random
def time_request():
from gevent import monkey; monkey.patch_socket
from jsonrequester import JsonRequester