Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40728
  • 博文数量: 19
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 145
  • 用 户 组: 普通用户
  • 注册时间: 2013-07-24 14:45
文章分类

全部博文(19)

文章存档

2018年(1)

2017年(6)

2016年(1)

2014年(11)

我的朋友

发布时间:2014-10-13 17:48:04

open 0;print <0>;......【阅读全文】

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

发布时间:2014-10-06 10:11:28

Consider finding the union and intersection of two unique arrays @a and @b: foreach $e (@a) { $union{$e} = 1 } foreach $e (@b) { if ( $union{$e} ) { $isect{$e} = 1 } $union{$e} = 1; } @union = keys %union; @isect = keys %isect;This would.........【阅读全文】

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

发布时间:2014-09-18 10:16:48

Origin: http://perl.plover.com/FAQs/Buffering.htmlSuffering from Buffering?My log file has nothing in it!My output is coming out in the wrong order!When my program terminates abnormally, the output is incomplete!My web server says I didn't send the right headers, but I.........【阅读全文】

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

发布时间:2014-07-02 20:59:07

#!/usr/bin/perluse strict;use ExtUtils::Installed;my $inst= ExtUtils::Installed->new();my @modules = $inst->modules();for (@modules){        my $ver = $inst->version($_) || "???";        printf("%-12s --  %s\n", $_, $ver);}__END__.........【阅读全文】

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

发布时间:2014-01-06 21:56:29

点击(此处)折叠或打开os.system 调用系统命令,完成后退出,返回结果是命令执行状态,一般是0 os.popen 可以实现一个“管道”,从这个命令获取的值可以在python 中继续被使用 os.popen使用语法如下:    .........【阅读全文】

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

登录 注册