网站更新内容:请访问: https://bigdata.ministep.cn/
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/4/18 16:30 # @Author : justin.郑 3907721@qq.com # @File : rest_agent.py # @Desc : import r 阅读全文
posted @ 2021-02-19 19:09 ministep88 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/3/27 0027 # @Author : justin.郑 3907721@qq.com # @File : date_utils.py # @Desc : 日期管理工具 im 阅读全文
posted @ 2021-02-19 19:07 ministep88 阅读(52) 评论(0) 推荐(0) 编辑
摘要: Yarn和npm命令对比 npm install yarn npm install taco --save yarn add taco npm uninstall taco --save yarn remove taco npm install taco --save-dev yarn add ta 阅读全文
posted @ 2021-02-19 18:28 ministep88 阅读(31) 评论(0) 推荐(0) 编辑
摘要: express 使用文档 使用 post 无法传递参数 req-body-empty-on-posts 选择“ X-www-form-urlencoded” 在 app.js 中使用 app.use(bodyParser.json()); app.use(bodyParser.urlencoded( 阅读全文
posted @ 2021-02-19 18:26 ministep88 阅读(28) 评论(0) 推荐(0) 编辑
摘要: es6基础语法 require vs import 语法 示例: 如何导入 moment包 //require语法 const moment = require('moment'); date = moment().locale('zh-cn').format('YYYY_MM_DD_HH_mm_s 阅读全文
posted @ 2021-02-19 18:18 ministep88 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 学习chrome-extension优秀插件 newtabnewquote 新标签页显示一句话 github地址:rahuls/newtabnewquote: A Chrome extension which shows a new quote on each new tab. chrome ext 阅读全文
posted @ 2021-02-19 18:16 ministep88 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Windows版的Typora支持图床的插件 typora在windows下自动上传图片的小工:typora-plugins-win-img 。 简单说下它的几个优点: 图片自动上传,无需其他操作。编写文档跟之前一样,不管是粘贴截图、还是选择插入本地文件,都不需要做任何特殊的操作,插件会自动给你上传 阅读全文
posted @ 2021-02-19 18:14 ministep88 阅读(168) 评论(0) 推荐(0) 编辑
摘要: mkdocs 安装使用 mkdocs-material 使用中文 mkdocs.yml 文件配置如下 extra: search: language: "ja" 参考 site search NOT working with multi languages configed (en+ja) · Is 阅读全文
posted @ 2021-02-19 18:13 ministep88 阅读(41) 评论(0) 推荐(0) 编辑
摘要: ## SSH免密登录 >终于有了一台自己的服务器,亦或者是接触新的领域的亢奋,但是当执行了几十次的时候,心里应该就有点烦躁了,卧X,每次都要输入ip、密码,或者CV过来,好麻烦啊! > >作为一个”慵懒”的coder,这个时候就会寻找更方便的方式来登陆服务器。 ## 使用ssh-keygen生成私钥 阅读全文
posted @ 2021-02-19 18:12 ministep88 阅读(195) 评论(0) 推荐(0) 编辑
摘要: ## 读取剪贴板数据 ## 存入到数据库 from py_function_tools import odps_read_sql,write_excle,write_to_database,hive_read_sql,odps_write_dataframe from py_function_too 阅读全文
posted @ 2021-02-19 18:02 ministep88 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 根据values实现批量下载 from py_function_tools import odps_read_sql,write_excle,write_to_database,hive_read_sql from py_function_tools import odps_write_datafr 阅读全文
posted @ 2021-02-19 16:35 ministep88 阅读(50) 评论(0) 推荐(0) 编辑
摘要: sftp vscode 服务器同步 sftp 插件 vscode 安装 sftp 插件 安装插件 Ctrl + Shift + P 输入 sftp:config (打开指定目录,选择目录; 然后再次 Ctrl + Shift + P 输入 sftp:config,自动创建会在本地生成一个【.vsco 阅读全文
posted @ 2021-02-19 14:08 ministep88 阅读(60) 评论(0) 推荐(0) 编辑
摘要: nginx 配置域名 第一步: 云服务器 配置域名,并申请下载 SSL 证书 将域名添加云解析(很重要,二级域名,也需要添加云解析) 第二步 server 服务器 主要是使用nginx 配置 我的Linux服务器上有两个站点,站点和对应的目录关系如下: 域名是 www.ministep.cn ,站点 阅读全文
posted @ 2021-02-19 14:07 ministep88 阅读(867) 评论(0) 推荐(0) 编辑
摘要: python 虚拟环境管理 虚拟环境管理主要是对 python 中的各个包进行管理与部署,从而方便用户的使用体验。 在从 github 上面下载别人的代码之后,不同的代码往往需要特定的运行环境。比如说有些代码需要在 python3.6 的环境下运行,有些代码需>要在 python2.7 的环境下运行 阅读全文
posted @ 2021-02-19 11:28 ministep88 阅读(54) 评论(0) 推荐(0) 编辑
摘要: python 包管理 安装包 conda install package_name # 或者 pip install package_name 更新包 python 安装 requirements.txt 依赖 示例 requirements.txt mkdocs==1.0.4 # mkdocs-m 阅读全文
posted @ 2021-02-19 11:25 ministep88 阅读(44) 评论(0) 推荐(0) 编辑
摘要: PIP 镜像使用帮助 由于防火墙的存在,pip可能存在下载包网速低、失败等常见问题,可以使用国内镜像解决; pypi 镜像使用帮助 pypi 镜像每 5 分钟同步一次。 临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some 阅读全文
posted @ 2021-02-19 11:19 ministep88 阅读(45) 评论(0) 推荐(0) 编辑
摘要: python 获取文件目录 python 获取目录 def listFiles(dir_path): paths = [] for root,dirs,files in os.walk(dir_path):##文件夹的路径 if files: ##判断是否有文件 for file_name in f 阅读全文
posted @ 2021-02-19 11:17 ministep88 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 数据管理 演示数据集 # Create a dataframe import pandas as pd import numpy as np raw_data = {'first_name': ['Jason', 'Molly', np.nan, np.nan, np.nan], 'national 阅读全文
posted @ 2021-02-19 10:56 ministep88 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 股票数据采集 中信证券使用的是通达信服务,数据可以下载到本地,以 day 文件形式保存,可以通过使用 python 读取 python 读取通达信 day 文件 import os import struct import pandas as pd def readTdxLdayFile(fname 阅读全文
posted @ 2021-02-19 10:47 ministep88 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 这里以获取雪球的xq_a_token为例 import requests r = requests.get("https://xueqiu.com", headers={"user-agent":"Mozilla"}) print(r.cookies["xq_a_token"]) 阅读全文
posted @ 2021-02-19 10:38 ministep88 阅读(132) 评论(0) 推荐(0) 编辑
网站更新内容:请访问:https://bigdata.ministep.cn/