12 2019 档案
摘要:with as语句的结构如下: with expression [as variable]: with-block with是一个控制流语句,跟if/for/while/try之类的是一类的,with可以用来简化try finally代码, 看起来可以比try finally更清晰。 这里新引入了一
阅读全文
摘要:https://max.book118.com/html/2017/0103/79730623.shtm
阅读全文
摘要:http://www.360doc.com/content/18/0710/00/45046439_769171949.shtml
阅读全文
摘要:在英语语音中,/p/ /b/ /t/ /d/ /k/ /g/等6个辅音被称为爆破音;/f/ /v/ /s/ /z/ / ʃ / / ʒ / /θ/ /ð/ /r/ /h/等10个辅音为摩擦音;/ tʃ/ /dʒ/ /tr/ /dr/ /ts/ /dz/等6个辅音为破擦音; /m / /n/ /ŋ/等
阅读全文
摘要:为什么在一些英文的文章中会看到作者专门在括号里注明“no pun intended",而类似的情况却在中文中很少出现? 首先pun作为“双关”来讲的时候,绝大多数都指的是那种有趣的、好笑的双关俏皮话。 比如:It's not that the man did not know how to jugg
阅读全文
摘要:https://blog.csdn.net/qq_22771739/article/details/89641229
阅读全文
摘要:sudo apt install python3-pip
阅读全文
摘要:Debian currently provides 3 ports, 'mips', 'mipsel', and 'mips64el'. The 'mips' and 'mipsel' ports are respectively big and little endian variants, us
阅读全文
摘要:https://packages.debian.org/stretch/mips64el/libhyperic-sigar-java/download
阅读全文
摘要:https://files.cnblogs.com/files/longchang/hyperic-sigar-1.6.4-src.tar.gz 解压后进入bindings目录,如果想编译java的库,进入java目录,执行ant命令就可以了。
阅读全文
摘要:https://www.cnblogs.com/happyliu/archive/2018/08/12/9462703.html
阅读全文
摘要:https://blog.csdn.net/lx_Frolf/article/details/82056367
阅读全文
摘要:cocomusic GoldenDict 必应好壁纸 RedNotebook
阅读全文
摘要:https://github.com/redstoneleo/BingNiceWallpapers 下载linux版本,修改权限,直接执行。
阅读全文
摘要:信号量作为锁使用事例。 #!/usr/bin/perl # use strict; use IPC::Semaphore; use IPC::SysV qw(IPC_PRIVATE S_IRUSR S_IWUSR IPC_CREAT IPC_NOWAIT SEM_UNDO); our $sem =
阅读全文
摘要:server.pl #!/usr/bin/perl use strict; use IPC::Shareable; my $key = 'data'; my %options = ( create => 1, exclusive => 1, mode => 0644, destroy => 1, )
阅读全文
摘要:#!/usr/bin/perl use IPC::SysV qw(IPC_PRIVATE IPC_CREAT S_IRWXU); use IPC::Msg; my $queue = IPC::Msg->new(IPC_PRIVATE, S_IRWXU | IPC_CREAT); $msgtype =
阅读全文
摘要:https://www.cnblogs.com/f-ck-need-u/p/9693675.html fork是低层次的系统调用,通过复制父进程来创建子进程。 #!/usr/bin/perl use 5.010; my $pid=fork(); say $pid, " "; fork用来拷贝当前进程
阅读全文
摘要:$|是perl的内置变量,默认情况下是0,如果设置为非0的话,表示当前的输出不经过缓存立刻输出。相当于c语言的fflush()函数,立即刷新缓冲区。 比如你print或者write一个文件,实际是需要经过缓存的,但是设置该变量非0后就不经过缓冲立刻输出了 不过perl的只要一次设置$|=1,那么程序
阅读全文
摘要:https://blog.csdn.net/www_helloworld_com/article/details/85019862
阅读全文
摘要:use Net::OpenSSH;our $PC2 = "testPC2";our $pc2_ssh = Net::OpenSSH->new( "$PC2", user => "root", password => "password", master_opts => [-o => "StrictH
阅读全文
摘要:-> 有两种用法,都和解引用有关。第一种用法,就是解引用。根据 -> 后面跟的符号的不同,解不同类型的引用,->[] 表示解数组引用,->{} 表示解散列引用,->() 表示解子程序引用。例子:$arr_ref = @array;$arr_ref->[0] 访问数组 @array 的第一个元素。$h
阅读全文
摘要:wipe out 了结,擦掉;彻底摧毁; wipeout 失败,大丢丑;
阅读全文
摘要:#!/usr/bin/perl use Log::Log4perl qw(:easy); Log::Log4perl->easy_init($INFO); drink(); drink("Soda"); sub drink { my($what) = @_; my $logger = get_log
阅读全文