全部博文(108)
发布时间:2014-06-10 22:56:16
-print True; print the full file name on the standard output, followed by a newline. If you are piping the output of find into another program and there is the faintest possibility that the files which you are searching for might contain a newline, then &.........【阅读全文】
发布时间:2014-06-10 13:16:20
点击(此处)折叠或打开[root@cdn conf]# perl -MData::Dumper -e 'print Dumper \@ARGV'$VAR1 = [];[root@cdn conf]# perl -MData::Dumper -e 'print Dumper \@ARGV' a b$VAR1 = [ &nbs.........【阅读全文】
发布时间:2014-06-07 09:24:18
首先保证你的服务器可以连接外网。1.增加/etc/yum.repos.d/td.repo里面的内容如下 [treasuredata] name=TreasureData baseurl=http://packages.treasure-data.com/redhat/$basearch gpgcheck=02.执行 yum update && yum install td-agent3./etc/init.d/.........【阅读全文】
发布时间:2014-06-06 18:40:37
看下面的代码生成器不支持索引及切片。参看第4行。生成器不支持与list相加。如果需要生成器结果那么最好用list expression,点击(此处)折叠或打开>>> def get_some_stuff():... pass... >>> def gen():... return(something for s.........【阅读全文】
发布时间:2014-06-06 18:31:28
看一段代码其中第5行是一个generator expression,第7行是一个list expression.点击(此处)折叠或打开[root@cdn ~]# python Python 2.6.6 (r266:84292, Jan 21 2013, 17:47:21) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2Type "help", "cop.........【阅读全文】