目录

hashcode

该属性返回一个整数,表示数值的哈希码。

语法 (Syntax)

num.hashcode

例子 (Example)

void main() { 
   int n = 5000; 
   print(n.hashCode); 
}  

它将产生以下output -

成功执行代码后会显示以下输出。

5000
↑回到顶部↑
WIKI教程 @2018