- 博客(5)
- 收藏
- 关注
原创 【leetcode】283.move_zeroes
【leetcode】283.Move ZeroesGiven an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12],
2016-07-10 22:40:01 345
原创 python返回数组(list)长度的方法
Python返回数组(List)长度的方法 array = [0,1,2,3,4,5] print len(array)
2016-07-10 22:39:38 4322
原创 python去除list中的重复元素的最简单办法(但性能不一定好)
Python去除list中的重复元素的最简单办法(但性能不一定好)简单来说就是先变成set(集合、本体是红黑树),然后再转换成list代码如下:imglist = list(set(imglist))
2016-07-03 23:50:34 928
原创 安装go第三方库
安装GO第三方库go help查看命令The commands are: build compile packages and dependencies clean remove object files doc show documentation for package or symbol env print
2016-07-03 23:49:05 6642
原创 nginx笔记(杂乱版一)
nginx笔记(杂乱版一)网址:http://tengine.taobao.org/book/chapter_02.html#id1阅读源码,调试代码是一个非常重要的手段,非常快一般我们会设置与机器cpu核数一致主要是因为这样不容易发生CPU迁移,CPU绑核是常用服务器优化手段。MASTER+WORKER=NUM(CPU)从容地重启,这个是一个比较神奇的特性,IPVS并没有从容重启原理:master
2016-07-03 23:48:02 337
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人