[Contract] Solidity 变量类型的默认值

变量的默认值一般都代表 “零值”。

比如 bool 就是 false,uint、int 就是 0,string 就是空字符串。

其它组合的参考 Solidity 判断 mapping 值的存在

Ref:https://solidity.readthedocs.io/en/v0.6.3/control-structures.html#default-value

Link:https://www.cnblogs.com/farwish/p/12367652.html

猜你喜欢

转载自www.cnblogs.com/farwish/p/12367652.html