博客 / 列表

微瀾 - [golang聖經]查找重複的行(程序無響應?)

go聖經裏有一段查找重複的行的代碼,發現輸入無反應不會打印重複行數據 // Dup1 prints the text of each line that appears more than // once in the standard input, preceded by its count. package main import ( "bufio" "fmt" "o

input , go