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

通过llama.cpp与羊驼聊天的网页界面- 详解 Serge 的启动使用

 

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

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

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

 

Refer:Solidity所有变量类型

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

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

posted on 2020-02-26 16:32  ercom  阅读(1035)  评论(0编辑  收藏  举报