码迷,mamicode.com
首页 >  
搜索关键字:python linux vim    ( 295317个结果)
[leetcode]Plus One @ Python
原题地址:https://oj.leetcode.com/problems/plus-one/题意:Given a non-negative number represented as an array of digits, plus one to the number.The digits are...
分类:编程语言   时间:2014-06-11 11:25:27    阅读次数:304
python列表推导式
原来这么长时间没写了,今天阅读《集体智慧编程》的时候,发现了python的一个功能,列表推导式。留个存[ 表达式 for 变量 in 列表] 或者[表达式 for 变量 in 列表 if 条件]例如:ll=[1,2,3,4,5,6,7,8,9,0]print (v*10 for v in ll if...
分类:编程语言   时间:2014-06-11 11:23:16    阅读次数:330
nodejs addon用c++
1, 安装nodejs安装python。2,安装node-gyp:sudo npm install -g node-gyp3,写代码:新建一个目录,创建hello.cc文件,然后创建binding.gyp文件:hello.cc#include#includeusingnamespace v8;Han...
分类:编程语言   时间:2014-06-11 11:10:24    阅读次数:380
linux tar用法
.tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)---------------------------------------------.gz解压1:gunzip FileName.gz解压2:gz...
分类:系统相关   时间:2014-06-11 11:03:08    阅读次数:309
Linux # & RO # Linux 操作 / 常用的插件
重点: 解决问题的思路www.cnblogs.com/rollenholt/archive/2012/09/01/2667184.html Linux 操作 - Rollen Holt - 博客园phorum.vbird.org/viewtopic.php?t=96 鳥哥的 Linux 私房菜-新手...
分类:系统相关   时间:2014-06-11 11:01:06    阅读次数:317
增加oracle数据库最大连接数
这几天碰到系统不能登陆的情况,初步判断可能是数据库连接满了,(后来检查不是这个原因),做了一次增加数据库最大连接数操作。操作步骤如下 操作系统:Red Hat Enterprise Linux Server release 6.3 (Santiago) 数据库oracle11g1,查看当前会话数.....
分类:数据库   时间:2014-06-11 10:29:14    阅读次数:349
Linux 内核 链表 的简单模拟
第零章:扯扯淡 出一个有意思的题目:用一个宏定义FIND求一个结构体struct里某个变量相对struc的编移量,如struct student{ int a; //FIND(struct student,a) 等于0 char b; //FIND(struct st...
分类:系统相关   时间:2014-06-11 10:23:14    阅读次数:361
[转载]Jenkins中执行batch和Python
Jenkins的job->build 支持Ant,maven,windows batch和Shell, 但是我们知道python,perl,ruby等脚本其实也是shell脚本,所以这里的Shell可以扩展为python,perl,ruby等。例如: 下面执行windows batch 和pytho...
分类:编程语言   时间:2014-06-11 10:03:49    阅读次数:296
读 linux_101_hacks 有感
强大的 CD 命令技巧 -rw-------. 1 root root 14808 Mar 13 12:31 .bash_history -rw-r--r--. 1 root root 18 May 20 2009 .bash_logout -rw-r--r--. 1 root root 176 M...
分类:系统相关   时间:2014-06-11 09:51:09    阅读次数:374
[leetcode]Rotate Image @ Python
原题地址:https://oj.leetcode.com/problems/rotate-image/题意:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Fo...
分类:编程语言   时间:2014-06-11 09:43:59    阅读次数:1264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!