精華區beta mud_sanc 關於我們 聯絡資訊
D-029 countlist 原文:count the number of times each item appears in a string list    and return a database record with the items as key properties, and the count of each item as the value of the key 中文:估算指定的字串表中,各個字串的數量。 格式:%countlist(list) 範例:#va test "aa|bb|cc|dd|aa|bb|dd|dd"    #showdb %countlist(@test)    有一個字串表在變數test中,展示各種字串在表中的數量,結果顯示:     aa: 2     bb: 1     cc: 2     dd: 2     ee: 1     ff: 1