随笔分类 -  tornado

摘要:hello hostname: ip: port: phone: HTML #!/usr/bin/env python # -*- coding:utf-8 -*- import tornado.ioloop im... 阅读全文
posted @ 2017-12-06 16:55 少数派&蔡先生 阅读(244) 评论(0) 推荐(0)
摘要:ajax 文件上传 iframe 文件上传 阅读全文
posted @ 2017-12-06 14:43 少数派&蔡先生 阅读(143) 评论(0) 推荐(0)
摘要:Ajax使用时,本质上就是去获取本地的cookie,携带cookie再来发送请求 阅读全文
posted @ 2017-12-06 11:39 少数派&蔡先生 阅读(254) 评论(0) 推荐(0)
摘要:#!/usr/bin/python# -*- coding: UTF-8 -*-import tornado.ioloopimport tornado.webCONT = {}class IndexHandler(tornado.web.RequestHandler): def get(self, 阅读全文
posted @ 2017-12-06 08:48 少数派&蔡先生 阅读(150) 评论(0) 推荐(0)
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import tornado.web from controllers import home setting = { "template_path":"views",# 模板路径配置 "static_path":"statics", # 静态文件配置# 静态文件配置 #"static... 阅读全文
posted @ 2017-12-04 15:42 少数派&蔡先生 阅读(229) 评论(0) 推荐(0)
摘要:转自 http://sebug.net/paper/books/tornado/ Overview FriendFeed使用了一款使用 Python 编写的,相对简单的 非阻塞式 Web 服务器。其应用程序使用的 Web 框架看起来有些像 web.py 或者 Google 的 webapp, 不过为 阅读全文
posted @ 2017-11-30 11:37 少数派&蔡先生 阅读(187) 评论(0) 推荐(0)
摘要:Tornado 和现在的主流 Web 服务器框架(包括大多数 Python 的框架)有着明显的区别:它是非阻塞式服务器,而且速度相当快。得利于其 非阻塞的方式和对 epoll的运用,Tornado 每秒可以处理数以千计的连接,因此 Tornado 是实时 Web 服务的一个 理想框架。 阅读全文
posted @ 2017-11-30 11:29 少数派&蔡先生 阅读(166) 评论(0) 推荐(0)