## IO 问题 | top 分析
iostat -x / iostat -x 1
ps auwxxx
top
lsof -p 12753
apt-get install iotop
ps aux | grep nginx | awk '{print $2}' | xargs kill
ps aux |...
分类:
其他好文 时间:
2015-04-03 15:23:56
阅读次数:
146
Implement analgorithm to print all valid combinations of n-pairs of parenthese.Analysis:-只要待加入的有左括号就可以加入左括号。最初可以加入的左括号为n个。-只要已加入的左括号比右括号多就可以加入右括号。最初可以...
分类:
其他好文 时间:
2015-04-03 14:46:24
阅读次数:
115
linux grep命令1.作用Linux系统中grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来。grep全称是Global Regular Expression Print,表示全局正则表达式版本,它的使用权限是所有用户。2.格式grep [options]...
分类:
其他好文 时间:
2015-04-03 13:25:36
阅读次数:
128
1、开发环境 去网上下载一个 Lua for Windows 下载地址: http://luaforge.net/projects/luaforwindows/ 2、lua扩展名 .lua 3、快速入门 1、helloworld print "hello world" print("hello wo...
分类:
其他好文 时间:
2015-04-03 13:13:13
阅读次数:
127
public class LingXing { public static void print(int n){ int i = 0; int j = 0; for(i=0; i<n; i++){...
分类:
其他好文 时间:
2015-04-03 12:46:11
阅读次数:
106
算术平均值 data sales;input id$ m1-m4;average=mean(of m1-m4);cards;A0001 120 180 60 187A0002 980 1740 730 1920A0003 110 1002 705 1098;proc print;run;本博客所有内容是原创,如果转载请注明来源http://blog.csdn.net/myhaspl/输出:...
分类:
其他好文 时间:
2015-04-03 11:26:13
阅读次数:
123
#!/usr/bin/env python
fl = open('not.csv')
wr = open('changeTpye.csv','w+')
for key in fl:
pt = key.split(',')
wr.write(pt[0]+'::'+pt[1]+'::'+pt[2]+'::'+pt[4])
print pt
fl.close()
wr.clo...
分类:
其他好文 时间:
2015-04-03 09:27:03
阅读次数:
92
#!/usr/bin/env python
fl = open('train.csv')
wrr = open('no_time_but_add.csv','w+')
for key in fl:
pt = key.split(',')
if pt[2] != '':
wrr.write(key)
print pt
fl.close()
wr.close(...
分类:
其他好文 时间:
2015-04-03 09:25:28
阅读次数:
151
本函数实现增加或设置对象object一个属性名称name,并设置相应的值value。一般情况与getattr()配套使用。例子:#setattr()
class Foo:
pass
foo = Foo()
setattr(foo, 'name', 'caijunsheng')
print(foo.name)结果输出如下:caijunsheng蔡军生 QQ: 9073204 ...
分类:
编程语言 时间:
2015-04-03 09:21:31
阅读次数:
141
直接上代码:list_a=['a','c','z','E','T','C','b','A','Good','Tack']list_b=['a','c','z','E','T','C','b','A','Good','Tack']list_a.sort()print list_a=
分类:
编程语言 时间:
2015-04-02 23:59:37
阅读次数:
460