Chinaunix首页 | 论坛 | 博客
  • 博客访问: 461315
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

发布时间: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 &.........【阅读全文】

阅读(1981) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(818) | 评论(0) | 转发(0)

发布时间: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/.........【阅读全文】

阅读(1531) | 评论(0) | 转发(0)

发布时间:2014-06-06 18:40:37

看下面的代码生成器不支持索引及切片。参看第4行。生成器不支持与list相加。如果需要生成器结果那么最好用list expression,点击(此处)折叠或打开>>> def get_some_stuff():... pass... >>> def gen():... return(something for s.........【阅读全文】

阅读(830) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(755) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册