# coding:utf8
import tornado.web
import tornado.ioloop
import tornado.options
import tornado.httpserver
import tornado.netutil
import tornado.process
from tornado.options import options, define
define("port", type=int, default=9000)
class IndexHandler(tornado.web.RequestHandler):
def get(self, *args, **kwargs):
self.write("<h1>hello world !</h1>")
urls = [
(r"/", IndexHandler)
]
configs = dict(
debug=True
)
class CustomApplication(tornado.web.Application):
def __init__(self, configs, urls):
settings = configs
handlers = urls
super(CustomApplication, self).__init__(handlers=handlers, **setti
import tornado.web
import tornado.ioloop
import tornado.options
import tornado.httpserver
import tornado.netutil
import tornado.process
from tornado.options import options, define
define("port", type=int, default=9000)
class IndexHandler(tornado.web.RequestHandler):
def get(self, *args, **kwargs):
self.write("<h1>hello world !</h1>")
urls = [
(r"/", IndexHandler)
]
configs = dict(
debug=True
)
class CustomApplication(tornado.web.Application):
def __init__(self, configs, urls):
settings = configs
handlers = urls
super(CustomApplication, self).__init__(handlers=handlers, **setti