Skip to navigation
Start with python3 and latest torando
21.04.14
1. apt-get install python3 2. apt-get install python3-pip 3. pip-3.2 install tornado 4. create a test file hello.py import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") application = tornado.web.Application([(r"/", MainHandler),]) if __name__ == "__main__": application.listen(8881) tornado.ioloop.IOLoop.instance().start() 5. start with python3 hello.py 6. check with your browser http://localhost:8881
https://docs.python.org/3.2/tutorial/
Reply
Anonymous
Information Epoch 1732534825
When in doubt, use brute force.
Home
Notebook
Contact us