统计作为参数传递或从stdin传入的文件中的数字总数
由 Aaron Power 编写
使用旧的Rust 2015
#29 in #passed
2KB
逐行计算文件中的数字。
test.txt
2 3 5 4 1
test2.txt
2 33 5
Shell
$ numcount test.txt 15 $ numcount test.txt test2.txt 55