测试服务端:
import tornado.ioloop
import tornado.web
class Result(tornado.web.RequestHandler):
def get(self):
serial = self.get_argument("serial", "") # 键为serial
self.write("%s" % serial)
测试客户端:
data = {"serial":"123456"} # 其中一个键为serial
url ="127.0.0.1:8888"
requests.get(url,params=data)