unicode_codepoints_from_string ()
傳回輸入字串之 Unicode 字碼點的動態數位。 此函式是函式的 unicode_codepoints_to_string()
反向運算。
已被取代的別名: to_utf8 ()
語法
unicode_codepoints_from_string(
value)
深入瞭解 語法慣例。
參數
名稱 | 類型 | 必要 | Description |
---|---|---|---|
value | string |
✔️ | 要轉換的來源字串。 |
傳回
傳回組成提供給此函式之字串之字元之 Unicode 字碼點的動態數位。
請參閱 unicode_codepoints_to_string()
)
範例
print arr = unicode_codepoints_from_string("⒦⒰⒮⒯⒪")
輸出
arr |
---|
[9382, 9392, 9390, 9391, 9386] |
print arr = unicode_codepoints_from_string("קוסטו - Kusto")
輸出
arr |
---|
[1511, 1493, 1505, 1496, 1493, 32, 45, 32, 75, 117, 115, 116, 111] |
print str = unicode_codepoints_to_string(unicode_codepoints_from_string("Kusto"))
輸出
字串 |
---|
Kusto |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應