华山轮贱

2022年4月28日

微信云发开的一个flask例子

摘要: 微信云开发的flask文档是错误的按着他的方案会出现 COPY failed: stat /var/lib/docker/tmp/docker-builder039536228/app: no such fiel Dockerfile # 写在最前面:强烈建议先阅读官方教程[Dockerfile最佳 阅读全文

posted @ 2022-04-28 16:41 华山轮贱 阅读(78) 评论(0) 推荐(0) 编辑

2022年4月24日

python sqlite的使用心得 _insert

摘要: def jzbm_insert(p1): # arr_col=['受种者编码', '受种者姓名', '受种者性别', '出生日期', '身份证', '电话号码', '住址', '工作单位', '人群分类', '人群分类2'] key="受种者编码" tablename="user" # con1=c 阅读全文

posted @ 2022-04-24 02:07 华山轮贱 阅读(278) 评论(0) 推荐(0) 编辑

2021年3月2日

获取行业和概念列表

摘要: from jqdatasdk import * import json import numpy as np import pandas as pd import os import time def industry_list(code): d1= get_industry(code,date=n 阅读全文

posted @ 2021-03-02 16:35 华山轮贱 阅读(93) 评论(0) 推荐(0) 编辑

2020年12月5日

钉钉页面扫码登录中hmac加密签名

摘要: """ 获取签名 param app_secret: 钉钉开发者文档创建的app密钥 param utc_timestamp: 官方文档中要签名的数据,单位是毫秒时间戳 return: 为所需要的签名值,此值为可逆的 """ def get_ding_talk_signature(app_secre 阅读全文

posted @ 2020-12-05 22:46 华山轮贱 阅读(271) 评论(0) 推荐(0) 编辑

获取钉钉开发access_token

摘要: def access_token(): p1="data/dingtalk/token.txt" b1=True#是否请求token re="" if os.path.exists(p1): r=txtread(p1) a1=json.loads(r) t1=a1["time"] tk=a1["ac 阅读全文

posted @ 2020-12-05 21:54 华山轮贱 阅读(931) 评论(0) 推荐(0) 编辑

2020年4月17日

pandas 与csv 的写入与读取

摘要: import numpy as np import pandas as pd a1=[] for q in range(10): ar1=[q,q+1,q+2,q+3] a1.append(ar1) n1=np.array(a1) df1 = pd.DataFrame(n1,columns=["t1 阅读全文

posted @ 2020-04-17 18:01 华山轮贱 阅读(264) 评论(0) 推荐(0) 编辑

pandas 的各种操作

摘要: import numpy as np import pandas as pd a1=[] for q in range(10): ar1=[q,q+1,q+2,q+3] a1.append(ar1) n1=np.array(a1) df1 = pd.DataFrame(n1,index=range( 阅读全文

posted @ 2020-04-17 01:32 华山轮贱 阅读(123) 评论(0) 推荐(0) 编辑

2020年4月16日

抓取东方财富可转债数据JSON并转化为数组

摘要: import json import time,datetime import os import requests import re session = requests.Session() session.headers = {'User-Agent': 'Mozilla/5.0 (Macin 阅读全文

posted @ 2020-04-16 13:53 华山轮贱 阅读(1403) 评论(0) 推荐(0) 编辑

2018年8月22日

gzip

摘要: 这是一个带GZIP压缩的txt写入类,可以有效减小写入文件大小,提升写入读取速度大约20倍 阅读全文

posted @ 2018-08-22 19:38 华山轮贱 阅读(359) 评论(0) 推荐(0) 编辑

2018年7月18日

c# 类的历遍和历遍操作

摘要: string id = Request.Form["id"]; string type = Request.Form["type"]; string info = Request.Form["info"]; usinfo u1 = nosql_usinfo.get(id); Type t = u1.GetType()... 阅读全文

posted @ 2018-07-18 17:01 华山轮贱 阅读(205) 评论(0) 推荐(0) 编辑

导航