python_tornado
来源:互联网 发布:淘宝美工素材网站 编辑:程序博客网 时间:2024/06/06 09:18
“Hello, world” 示例:
import tornado.ioloopimport tornado.webclass MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world")application = tornado.web.Application([ (r"/", MainHandler),])if __name__ == "__main__": application.listen(8888) tornado.ioloop.IOLoop.instance().start()
注:不知道为什么把端口设置成6666访问不了
阅读全文
0 0
- python_tornado
- GBDT(MART) 迭代决策树入门教程 | 简介
- PAT (Top Level) Practise 1018Subnumbers (35)
- linux下安装cmake方法
- 智能算法+DNN
- Nginx负载均衡与高可用的实现
- python_tornado
- centos7下git安装及使用
- ContOS7.X 下 安装 MySql
- 机器学习之条件随机场(CRF)
- install pydot and graphviz for win10
- bzoj3997 [TJOI2015]组合数学
- ScrollView 嵌套RecyclerView只显示一行
- web前端面试问题
- 【JAVA-Mybatis】MyBatis 常用逻辑符号转换