看板
[ Perl ]
討論串[問題] 如何從檔案裡取數字並相加
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
讀檔案那段跳過. for my $new(@data). {. my @num = $new =~ /\d+/g;. for my $out(@num) {. if (!$saw{$out}) {. print "$out ";. $saw{$out} = 1;. $partialSum .= "$
(還有136個字)
內容預覽:
大家好:. 我手邊有一個檔案 input.txt 如下. the 77 survey: 77 out of 100 people will not pick the number 1 as the first choice.A stitch in time saves 9 but only if y
(還有111個字)
首頁
上一頁
1
下一頁
尾頁