import tornado.ioloop
import tornado.web
import os
from tornado.options import parse_command_line


class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello world!")


settings = {
    "static_path": os.path.join(os.path.dirname(__file__), 'static'),
}

application = tornado.web.Application([
    (r"/", MainHandler),
    (r"/favicon.ico", tornado.web.StaticFileHandler, dict(path=settings["static_path"])),
], **settings)


if __name__ == "__main__":
    parse_command_line()
    application.listen(18888)
    tornado.ioloop.IOLoop.instance().start()

@@ -1,20 +1,51 @@
+#-*-coding: utf-8-*-%0Aimport os%0A
 import tornado.ioloo
@@ -65,26 +65,16 @@
 ado.web%0A
-import os%0A
 from tor
@@ -120,20 +120,21 @@
 %0A%0Aclass 
-Main
+Hello
 Handler(
@@ -218,16 +218,117 @@
 ld!%22)%0A%0A%0A
+class LoveHandler(tornado.web.RequestHandler):%0A    def get(self):%0A        self.write(%22Love world!%22)%0A%0A
 settings
@@ -408,24 +408,16 @@
 ,%0A%7D%0A%0Aapp
-lication
  = torna
@@ -452,12 +452,42 @@
 /%22, 
-Main
+HelloHandler),%0A    (r%22/love%22, Love
 Hand
@@ -662,24 +662,16 @@
  app
-lication
 .listen(
 1888
@@ -670,13 +670,12 @@
 ten(
-18888
+8000
 )%0A  

update hello.py