- 博客(3)
- 资源 (17)
- 收藏
- 关注
转载 hive与presto时间转换对比
文章转自:https://zhuanlan.zhihu.com/p/164645100问题1:时间格式转换例子: 当前时间20200110 转化为2020-01-10--输出 2020-01-10--hiveselect to_date(from_unixtime(UNIX_TIMESTAMP('20200110','yyyyMMdd')));--prestoselect (format_datetime(date_parse('20200110','%Y%m%d'),'yyyy-M
2020-12-21 14:00:06 2259
原创 python获取前n月第一天和最后一天
import datetime#获取前n月第一天和最后一天,n大于等于1def getNMonthBefore(date, n): month = date.month year = date.year for i in range(n-1): if month == 1: year -= 1 month = 12 else: month -= 1 last_day .
2020-12-14 20:05:19 1001
原创 python获取前n周第一天和最后一天
import datetimetoday = datetime.datetime.today().date()#获取前n个自然周第一天和最后一天def getNWeeksBefore(today,n): ywd = datetime.datetime.now().isocalendar() #(year,week,周几) next_week_start = today + datetime.timedelta(days=today.weekday() - 6-ywd[2] - 7.
2020-12-14 20:03:00 997
OpenCV 3.x with Python By Example 2nd .txt
2019-06-01
OpenCV-3-x-with-Python-By-Example-master.zip
2019-05-31
传智播客python课件
2019-01-26
强化学习Reinforcement learning:An introduction第二版
2018-10-16
斯坦福cs234强化学习ppt教程reinforcement learning
2018-10-10
迁移学习教程,Transfer learning介绍,TL调查
2018-10-08
深度学习优化算法大全
2018-10-08
Deep Learning for Computer Vision by Dr. Stephen Moore
2018-09-18
Deep Learning for Computer Vision with Python123
2018-09-18
Hands On Machine Learning with Scikit-Learn and TensorFlow20173
2018-07-03
David Silver强化学习课件ppt
2018-07-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人