|
Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) Félévek Linkek * kalendárium |
Nim2 /
The ord() functionThe The signature of the function: func ord[T: Ordinal | enum](x: T): int {.magic: "Ord", ....} The input parameter With ASCIIThere's no problem with ASCII characters: echo ord('A') # 65 echo 'a'.ord # 97 With Unicode
I want to write about Unicode and UTF-8 encoding later. Is short: a What about Python? In Python, when you declare a char: c = 'x' then it's actually a 1-long string :) You can verify its type. Python does the heavy-lifting when you work with Unicode texts. |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |
||||