在Kotlin,你可以用 codePoints() 取得解碼後的字串,回傳值是 IntStream 。而 count() 的結果就是Unicode 字元數;在Go,則可以用 utf8.
確定! 回上一頁