- 博客(5)
- 资源 (6)
- 收藏
- 关注
原创 HJ 212-2017 CRC数据校验 (Python)
借鉴博客地址:https://www.cnblogs.com/LiuSiyuan/p/8110192.html,翻译成Python版代码如下:def crc16(text): """ hj 212-2017 crc16效验 :param text: 待效验的字符串 :return: result """ data = bytearray(t...
2019-10-16 18:53:31 2280
原创 python + pandas爬取网页表格数据
这里以工标网标准数据为例 http://www.csres.com/notice/50655.html 先请求页面,xpath定位表格区域res = requests.get('http://www.csres.com/notice/50655.html')res_elements = etree.HTML(res.text)table = res_elements.xpat...
2019-01-30 11:54:55 25413 10
原创 Elasticsearch数据导出Excel Python实现
依赖环境: pip install elasticsearch openpyxl代码如下:#!/usr/bin/env python3# -*- coding: utf-8 -*-# @Author : QC# @Date : 2018/12/15 11:08# @desc : 导出es指定index, type的数据到excelfrom elasticse...
2018-12-15 12:02:56 3478 1
转载 python3发送邮件,采用ssl端口,大部分云服务器是默认关闭25端口的,建议采用ssl端口
#!/usr/bin python3# -*- coding: utf-8 -*-import smtplibfrom email.mime.text import MIMETextdef send_mail(username, passwd, recv, title, content, mail_host='smtp.163.com', port=465): ''' ...
2018-05-31 11:43:09 2105
转载 elasticsearch查询某个字段为空值的结果
传统sql查询返回某个字段为空值的结果写法是 select * from 表名 where 字段名 is null 在elasticsearch中查询语句为GET index/txt/_search{ "query" : { "bool" : { "must_not": { "exists" : { ...
2018-05-16 10:32:15 77753 8
winrar64位无广告
2019-04-18
省市区三级联动json数据
2019-04-03
Xshell6免费版
2018-08-22
抓包工具charles4.2.5破解版
2018-07-17
WinRAR64位破解版
2018-06-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人