Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1 from node/node-patch-tornado
Browse files Browse the repository at this point in the history
add Python tornado hello world
  • Loading branch information
node authored Oct 16, 2018
2 parents 63be2e3 + d8f456d commit 27ce9b1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Python_tornado_hello_world/hello_world_tornado.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import tornado.ioloop
import tornado.web

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

def make_app():
return tornado.web.Application([
(r"/", MainHandler),
])

if __name__ == "__main__":
app = make_app()
app.listen(8888)
tornado.ioloop.IOLoop.current().start()

0 comments on commit 27ce9b1

Please sign in to comment.