网站更新内容:请访问: https://bigdata.ministep.cn/
摘要: 跨年周留存计算如何计算? 正常计算周留存,可以直接用 weekofyear(t1.dt) = weekofyear(t2.dt) -1 但是如果遇到跨年,按照一年52个周,新年又从1开始,导致跨年的周留存,计算不出来; 解决之道: 每一周的开始日期和结束日期是相对固定的,可以先把日期固定到周,然后取 阅读全文
posted @ 2021-03-17 11:32 ministep88 阅读(1005) 评论(0) 推荐(0)
摘要: 一、前言 作为一名合格的程序员,github打开速度太慢怎么能容忍。但是可以通过修改hosts文件信息来解决这个问题。 二、macOS解决方法 打开hosts文件.终端输入sudo vim /private/etc/hosts 在 vim 编辑中,输入i可以编辑hosts文件(如果按了没效果再按一下 阅读全文
posted @ 2021-03-13 12:23 ministep88 阅读(320) 评论(0) 推荐(0)
摘要: python\小脚本\selenium_base_file.py # -*- coding: utf-8 -*- """ Created on Wed Feb 28 19:40:07 2018 @author: zhoujunqing """ # -*- coding: utf-8 -*- """ 阅读全文
posted @ 2021-03-13 10:13 ministep88 阅读(60) 评论(0) 推荐(0)
摘要: python\小脚本\地址经纬度解析.py # -*- coding: utf-8 -*- """ Created on Thu Nov 24 10:10:13 2016 @author: Acer """ # -*- coding: utf-8 -*- #import sys, urllib, u 阅读全文
posted @ 2021-03-13 10:12 ministep88 阅读(289) 评论(0) 推荐(0)
摘要: 计算两点间经纬度距离.py # -*- coding: utf-8 -*- """ Created on Sat Oct 20 14:51:00 2018 计算两点间经纬度距离 @author: kemi """ #方法一 #from geographiclib.geodesic import Ge 阅读全文
posted @ 2021-03-13 10:10 ministep88 阅读(239) 评论(0) 推荐(0)
摘要: python\小脚本\HiveConnection.py # -*- coding:utf-8 -*- # Author : sll # @Time : 2018/11/1 下午4:48 from pyhive import hive from pandas import DataFrame HIV 阅读全文
posted @ 2021-03-13 10:08 ministep88 阅读(151) 评论(0) 推荐(0)
摘要: #python\小脚本\循环读取目录文件.py # -*- coding: utf-8 -*- """ Created on Mon Jul 23 19:09:58 2018 @author: zhoujunqing """ # -*- coding: utf-8 -*- """ Created o 阅读全文
posted @ 2021-03-13 10:07 ministep88 阅读(99) 评论(0) 推荐(0)
摘要: jupyter 后台运行 #jupyter.sh cd ~/OneDrive/python nohup jupyter notebook >> jupyter_notebook_1.log 2>&1 & ##将cmd输出信息写入到log文件中,便于后续排查错误 阅读全文
posted @ 2021-03-13 10:05 ministep88 阅读(231) 评论(0) 推荐(0)
摘要: confluence数据备份 #!/usr/bin/env python # coding: utf-8 import os import datetime import shutil # confluence数据备份,因为confluence不能保留7天备份,并且每天全备份,占用空间很大,所以写脚 阅读全文
posted @ 2021-03-13 10:01 ministep88 阅读(523) 评论(0) 推荐(0)
摘要: 字典增加方式1 var dict = {}; dict['key'] = "testing"; console.log(dict); 像python一样工作:) 控制台输出: Object {key: "testing"} 字典增加方式2 var blah = {}; // make a new d 阅读全文
posted @ 2021-02-28 23:10 ministep88 阅读(6567) 评论(0) 推荐(0)
网站更新内容:请访问:https://bigdata.ministep.cn/