上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: class MainHandler: def __init__(self): self.host = "(.*)" self.ip = "^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$" self.port 阅读全文
posted @ 2017-02-07 18:26 200ML 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import tornado.ioloop import tornado.web container = {} class Session: def __init__(self,handler): self.handler = handler # 生成随机字符串 ... 阅读全文
posted @ 2017-02-07 16:20 200ML 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import tornado.ioloop import tornado.web container = {} class IndexHandler(tornado.web.RequestHandler): def get(self, *args, **kwargs): if se... 阅读全文
posted @ 2017-02-07 15:28 200ML 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import tornado.ioloop import tornado.web class IndexHandler(tornado.web.RequestHandler): def get(self, *args, **kwargs): if self.get_argument... 阅读全文
posted @ 2017-02-07 14:26 200ML 阅读(995) 评论(0) 推荐(0) 编辑
摘要: for循环 - 特殊语言 {% for item in obj%} {{ item }} {% end %} 普通传参- 模版语言 {{ nvp }} 执行函数 - 模版语言 {{ func(nvp) }} 执行类 - 模版语言 {% module custom() %} 继承母板 -模版语言 {% extends '../master/layout.html'%} 占位符,需要... 阅读全文
posted @ 2017-02-07 09:45 200ML 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 文件配置 settings = { # 模版路劲配置 'template_path':'tpl', # 静态路劲配置 如css 和 js 'static_path':'static', #静态文件的前缀 'static_url_prefix':'/ssss/', # 自定义函数配置 'ui_methods': md , # ... 阅读全文
posted @ 2017-02-06 09:29 200ML 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import tornado.ioloop import tornado.web INPUTS_LIST = [] class MainHandler(tornado.web.RequestHandler): def get(self): # self.write("Hello... 阅读全文
posted @ 2017-02-05 17:31 200ML 阅读(154) 评论(0) 推荐(0) 编辑
摘要: from wsgiref.simple_server import make_server def new(): return 'new' def RunServer(environ,start_response): start_response('200 OK',[('Conten-Type',' 阅读全文
posted @ 2017-02-05 14:53 200ML 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.跑马灯 标签 功能 ... 普通卷动 ... 滑动 ... 预设卷动 ... 来回卷动 ... 向下卷动 ... 向上卷动 向右卷动 向左卷动 ... 卷动次数 ... 设定宽度 ... 设定高度 ... 设定背景颜色 ... 设定卷动距离 ... 设定卷动时间 2. 字体效果 标签 功能 ... 标题字(最大) ... 标题字(最小) ... 粗体字 ... 粗体字(强调)... 阅读全文
posted @ 2017-01-25 19:22 200ML 阅读(117) 评论(0) 推荐(0) 编辑
摘要: li = [] for i in range(10): def f1(): return i li.append(f1) print(li[1]()) '''循环x ,把x值添加到 前面x里面''' li = [x for x in range(10)] print(li) '''循环X 如果X大于5 就把X添加到前面X里面并且加10''' li = [... 阅读全文
posted @ 2017-01-23 16:04 200ML 阅读(82) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页