latyas
2015 年 7 月 14 日
from tornado.web import Application, RequestHandler
from tornado.ioloop import IOLoop
from functools import partial
class FuckinHandler(RequestHandler):
def get(self):
func = partial(Handler.get.im_func, self)
func()
class Handler(RequestHandler):
def get(self):
self.write('test')
self.finish()
WEBSERVER_PORT = 10000
application = Application([
(r'/', FuckinHandler),
])
application.listen(WEBSERVER_PORT)
IOLoop.instance().start()