在 Julian 中,我想知道角色的特定 unicide-key 并将其保存到变量中。我该怎么做呢?
\n例如,我可以在 中写入 Unicode 字符REPL,它会很乐意告诉我它们的 Unicode 密钥。
julia> '\xc3\xab'\n'\xc3\xab': Unicode U+00EB (category Ll: Letter, lowercase)\n\njulia> 'e'\n'e': ASCII/Unicode U+0065 (category Ll: Letter, lowercase)\n\nRun Code Online (Sandbox Code Playgroud)\n我如何提取U+00EB和U+0065?
使用codepoint:
julia> codepoint('e')\n0x00000065\n\njulia> codepoint('\xc3\xab')\n0x000000eb\nRun Code Online (Sandbox Code Playgroud)\n