随笔 - 170  文章 - 1  评论 - 5  阅读 - 27万 
07 2018 档案
python http 请求 响应 post表单提交
摘要:1. 查看请求 响应情况 print(response.text) print(response.headers) print(response.request.body) print(response.request.headers) 2. post的multipart/form-data请求 # 阅读全文
posted @ 2018-07-26 14:15 swing07 阅读(777) 评论(0) 推荐(0) 编辑
每周散记 20180723
摘要:1. linux 入门经典 《循序渐进Linux》 看目录还可以 具体没有看过 http://blog.51cto.com/ixdba/1741789 2. 代码签名 https://blog.csdn.net/thanklife/article/details/70333511 3. 微信推送消息 阅读全文
posted @ 2018-07-24 18:22 swing07 阅读(105) 评论(0) 推荐(0) 编辑
优惠劵产品分析
摘要:转载:https://baijiahao.baidu.com/s?id=1602968014396631755&wfr=spider&for=pc 优惠券系统应该如何设计? 优惠券系统应该如何设计? 人人都是产品经理 百家号06-1117:31 人人都是产品经理 百家号06-1117:31 人人都是 阅读全文
posted @ 2018-07-20 16:41 swing07 阅读(534) 评论(0) 推荐(0) 编辑
c++ 软件版本比较函数
摘要:// 版本号拆分为数组 void splitToInt(string str , vector<int> *v1, char delim ){ // 拆分 string strTmp; strTmp = ""; int num = 0; for (int i = 0;i< str.size();i+ 阅读全文
posted @ 2018-07-17 16:22 swing07 阅读(878) 评论(0) 推荐(0) 编辑
每周散记
摘要:## c++ 跨平台注意项https://www.2cto.com/kf/201612/575510.html ## c++ 日期处理跨平台 boost的datetime类 Boost之日期时间处理(date_time库)https://blog.csdn.net/optcaelum/article 阅读全文
posted @ 2018-07-16 20:50 swing07 阅读(111) 评论(0) 推荐(0) 编辑
转: 系统问题排查思路
摘要:转: http://blog.51cto.com/sery/1676611# 简单密码引起的血案 作者:田逸(sery@163.com) 正在努力搬砖,一阵急促的电话铃想起,同事紧急告知,论坛访问很慢,其它技术人员已经折腾了半天找不到原因,需要尽快处理。 首先简单了解了一些情况,运营的同事说前几天有 阅读全文
posted @ 2018-07-16 17:22 swing07 阅读(248) 评论(0) 推荐(0) 编辑
python 豆瓣验证码识别总结
摘要:总结: pytesseract 识别比较标准的图片 识别成功率 还是不错的。 验证码的图片识别 需要先处理好 再用pytesseract 识别 from PIL import Image # 图片处理import pytesseract # 识别 im = Image.open('/home/yue 阅读全文
posted @ 2018-07-14 19:38 swing07 阅读(633) 评论(0) 推荐(0) 编辑
python 判断变量是否存在 防止报错
摘要:Python判断变量是否存在 方法一:使用try: ... except NameError: ...。 方法二:使用locals()和globals()两个内置函数。 locals() : 基于字典的访问局部变量的方式。键是变量名,值是变量值。globals() : 基于字典的访问全局变量的方式。 阅读全文
posted @ 2018-07-12 15:30 swing07 阅读(31245) 评论(0) 推荐(0) 编辑
python requests 的cookie 操作
摘要:结论: 1.requests模块的请求和响应分别有cookie对象。 可以通过此对象设置和获取cookie。 2.通过在requests.get,requests.post等方法请求中传入cookies字典参数 只用于单次请求的cookie设置。 3. request.session() 返回保持会 阅读全文
posted @ 2018-07-12 10:24 swing07 阅读(18341) 评论(0) 推荐(0) 编辑
DDOS 攻击的防范
摘要:ddos 攻击介绍 可以看下面的文章 http://www.ruanyifeng.com/blog/2018/06/ddos.html 下面转自: http://www.escorm.com/archives/452 防御DDOS是一个系统工程,攻击花样多,防御的成本高瓶颈多,防御起来即被动又无奈。 阅读全文
posted @ 2018-07-10 18:13 swing07 阅读(346) 评论(0) 推荐(0) 编辑
python图片识别
摘要:python 图像处理模块1. 安装 pytesseract模块是会自动安装Pillow模块。pillow 为标准图像处理库 手册地址 http://pillow-cn.readthedocs.io/zh_CN/latest/index.htmlpytesseract 模块用于文字识别pip3 in 阅读全文
posted @ 2018-07-09 21:56 swing07 阅读(2832) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示