摘要: 找了好久终于找到你 打开文件时不小心点到files open in assoasiated applications 这个按钮, 然后在idea中无法打开 阅读全文
posted @ 2020-03-25 18:45 screte 阅读(196) 评论(0) 推荐(0)
摘要: git地址:https://github.com/LeeDF/paramParse 用于http.Request 集中解析参数, 并返回错误 目前支持常用的数据类型, 需要新的类型可以加 用法也非常简单欢迎吐槽 example: func Hello(w http.ResponseWriter, r 阅读全文
posted @ 2020-02-17 17:39 screte 阅读(1716) 评论(0) 推荐(0)
摘要: 1:mysql数据库相关知识 四种事务隔离级别 事务中未提交的改动对其他事务是可见的,也称为脏读 索引 基础知识: 虚拟内存与物理内存的区别:https://blog.csdn.net/lvyibin890/article/details/82217193 同步异步,阻塞与非阻塞:https://w 阅读全文
posted @ 2019-03-20 22:56 screte 阅读(322) 评论(0) 推荐(0)
摘要: 问题场景: 业务需要对接接口, 采用DES加密方式加密, 于是google一下go的DES加密方式,go的DES的默认隐藏了ECB模式, 因为go认为ECB不安全, 所以不建议使用,就隐藏了,然而接口却需要采用ECB模式(吐槽写文档的人, 并没有写明使用了ECB模式,这让我耗费了大量的时间来猜测他的 阅读全文
posted @ 2019-03-09 14:56 screte 阅读(1991) 评论(0) 推荐(0)
摘要: python实现: 反转需注意:反转的时候需要提前记录cur(标记当前位置)的位置,防止cur的next改变导致死循环 go实现: 阅读全文
posted @ 2019-02-19 16:30 screte 阅读(279) 评论(0) 推荐(0)
摘要: function download($link,$destination) { $array = get_headers($link,1); echo 'begin download: '.$link . PHP_EOL; if(preg_match('/200/',$array[0])){ $f = fopen($link, 'rb'); ... 阅读全文
posted @ 2018-12-29 10:52 screte 阅读(130) 评论(0) 推荐(0)
摘要: 代码如下: for _i in range(8): t = threading.Thread(target=main,args=(clienLog,)) t.setDaemon(True) t.start() t.join() 这是因为对join理解有偏差的原因导致的,join ()方法:主线程A中 阅读全文
posted @ 2018-12-20 08:40 screte 阅读(935) 评论(0) 推荐(0)
摘要: flaskStudy 环境:anaconda (python3.7), windows10 hello world 首先创建三个目录 app app/templates :放模板文件(html) app/static:静态资源(图片,css,js等) 创建几个文件 run.py:项目启动文件(入口文 阅读全文
posted @ 2018-11-13 19:31 screte 阅读(382) 评论(0) 推荐(0)
摘要: jinjia2模板默认开启的是自动转义,将一切特殊字符进行转义,所以浏览器无法解析传入的html about.content 是<p>test</p><p></test> 只要输出的时候: 阅读全文
posted @ 2018-11-13 17:56 screte 阅读(1051) 评论(0) 推荐(0)
摘要: 根据ubuntu:16.04搭建 获取一个ubuntu镜像: 如果nginx未找到,使用apt-get update nginx装好后装php 发现么有apt-add-repository 执行 然后安装php 同时会自动安装php-cli的 安装mysql 东西都装好了,nginx需要稍微配置一下 阅读全文
posted @ 2018-10-12 19:34 screte 阅读(404) 评论(0) 推荐(0)