Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <!DOCTYPE html>$
  2. <html>$
  3. <body>$
  4. <p>The GIF standard allows moving images.</p>$
  5. <img src="programming.gif" alt="Computer man" style="width:148px;hei ght:148px;">$
  6. </body>$
  7. </html>$
  8.  
  9. import tornado.web$
  10. import tornado.ioloop$
  11. import tornado.httpserver$
  12. $
  13. class Handler(tornado.web.RequestHandler):$
  14. def get(self):$
  15. self.render("html_image_05.html")$
  16.  
  17. application = tornado.web.Application([$
  18. (r"/",Handler)$
  19. ])$
  20. http_server = tornado.httpserver.HTTPServer(application)$
  21. http_server.listen(80)$
  22. tornado.ioloop.IOLoop.instance().start()$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement