摘要:
存在则更新,不存在则插入 import pandas as pd import pymongo from pymongo import IndexModel, ASCENDING from pymongo import InsertOne, DeleteMany, ReplaceOne, Updat 阅读全文
摘要:
python requests读取的网页内容添加格式 方法一: # -*- coding: utf-8 -*- """ requests结果集的css格式化处理 """python ## common/handle_markdown_style.py import sys, os base_path 阅读全文
摘要:
跨年周留存计算如何计算? 正常计算周留存,可以直接用 weekofyear(t1.dt) = weekofyear(t2.dt) -1 但是如果遇到跨年,按照一年52个周,新年又从1开始,导致跨年的周留存,计算不出来; 解决之道: 每一周的开始日期和结束日期是相对固定的,可以先把日期固定到周,然后取 阅读全文
摘要:
一、前言 作为一名合格的程序员,github打开速度太慢怎么能容忍。但是可以通过修改hosts文件信息来解决这个问题。 二、macOS解决方法 打开hosts文件.终端输入sudo vim /private/etc/hosts 在 vim 编辑中,输入i可以编辑hosts文件(如果按了没效果再按一下 阅读全文
摘要:
python\小脚本\selenium_base_file.py # -*- coding: utf-8 -*- """ Created on Wed Feb 28 19:40:07 2018 @author: zhoujunqing """ # -*- coding: utf-8 -*- """ 阅读全文
摘要:
python\小脚本\地址经纬度解析.py # -*- coding: utf-8 -*- """ Created on Thu Nov 24 10:10:13 2016 @author: Acer """ # -*- coding: utf-8 -*- #import sys, urllib, u 阅读全文
摘要:
计算两点间经纬度距离.py # -*- coding: utf-8 -*- """ Created on Sat Oct 20 14:51:00 2018 计算两点间经纬度距离 @author: kemi """ #方法一 #from geographiclib.geodesic import Ge 阅读全文
摘要:
python\小脚本\HiveConnection.py # -*- coding:utf-8 -*- # Author : sll # @Time : 2018/11/1 下午4:48 from pyhive import hive from pandas import DataFrame HIV 阅读全文
摘要:
#python\小脚本\循环读取目录文件.py # -*- coding: utf-8 -*- """ Created on Mon Jul 23 19:09:58 2018 @author: zhoujunqing """ # -*- coding: utf-8 -*- """ Created o 阅读全文
摘要:
jupyter 后台运行 #jupyter.sh cd ~/OneDrive/python nohup jupyter notebook >> jupyter_notebook_1.log 2>&1 & ##将cmd输出信息写入到log文件中,便于后续排查错误 阅读全文