scala char
Scala Char数据类型 (Scala Char Data Type)
Character (char) in Scala is a data type that is equivalent to 16-bit unsigned integer. The character data type stores a single character. It can be an alphabet, numbers, symbols, etc. The character takes 2 bytes while storing its literals.
Scala中的字符(char)是相当于16位无符号整数的数据类型。 字符数据类型存储单个字符。 它可以是字母,数字,符号等。该字符在存储其文字时占用2个字节。
When stored in memory, the character data type is stored as a Unicode number. This Unicode number is a unique unification number that is available for every character literal to be stored.
当存储在内存中时, 字符数据类型将存储为Unicode数字。 该Unicode编号是唯一的统一编号,可用于要存储的每个字符文字。
The use of char data type is not manda