摘要: interval 间隔调度 它的参数如下: weeks(int) – number of weeks to wait days(int) – number of days to wait hours(int) – number of hours to wait minutes(int) – numb 阅读全文
posted @ 2017-02-22 18:10 webbky 阅读(684) 评论(0) 推荐(0) 编辑
摘要: #!/usr/local/bin/python # coding=utf-8 from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': ... 阅读全文
posted @ 2017-02-21 16:38 webbky 阅读(2330) 评论(0) 推荐(0) 编辑
摘要: SELECT CASEWHEN //当count(userId) = 0的时候 让其为null 不然报警告 // count(DISTINCT userId) 不用处理 count(userId) = 0 THEN NULL ELSE ROUND( count(userId) / count(DIS 阅读全文
posted @ 2017-02-21 16:30 webbky 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-02-14 22:25 webbky 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-02-14 22:21 webbky 阅读(2191) 评论(0) 推荐(2) 编辑
摘要: 时间戳转成格式化时间 转化 格式化时间转化成时间戳 转化 阅读全文
posted @ 2017-02-14 21:50 webbky 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 在chrome上 在Safari上 类似‘2017-2-23’ 这种的时间格式,是无效的时间格式! 在chrome上,对于无效的时间格式,chrome会吧当做当天00:00解析, 在Safari上,对于无效的时间格式,Safari 会直接报错! Python 这种后台语言没有这种问题 https:/ 阅读全文
posted @ 2017-02-12 21:51 webbky 阅读(656) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask from flask_cors import CORS, cross_origin app = Flask(__name__) CORS(app) @app.route("/") def helloWorld(): return "Hello, cross-origin-world!" from functools import wra... 阅读全文
posted @ 2017-02-10 22:35 webbky 阅读(305) 评论(0) 推荐(0) 编辑
摘要: ltime = time.localtime(todayStamp) timeStr = time.strftime("%Y-%m-%d", ltime) # print datetime.datetime.fromtimestamp(todayStamp) http://www.wklken.me/posts/2015/03/03/python-base-datetime.ht... 阅读全文
posted @ 2017-02-10 14:49 webbky 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-02-09 18:46 webbky 阅读(177) 评论(0) 推荐(0) 编辑