Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想编写一个以枚举中的数字开头的标识符,但它给出了“无效的文字数字错误”。就像是:
val 30Over360US = Value
我该如何实现?
在反引号的帮助下,您几乎可以使用任何标识符:
val `30Over360US` = Value