摘要: python 中 time 有三种格式: float, struct tuple(time.struct_time 或 datetime.datetime), str 常用的: float --> struct tuple: time.localtime( float ) struct time t 阅读全文
posted @ 2017-07-25 11:00 RoyFans 阅读(979) 评论(0) 推荐(0)
摘要: 最近测试hbase,老发现服务挂掉,自己不能及时发现,想了想,写了个脚本,让脚本每个小时执行一次,以便检测是否有服务挂掉,如果有服务挂掉,及时启动 这个代码也可以扩展,把hours=1改成minutes=1就变成了每个小时定时任务,改成days=1就变成每天的定时任务 阅读全文
posted @ 2017-07-25 11:00 RoyFans 阅读(11702) 评论(0) 推荐(0)