摘要:
contract SafeMath { // 乘法(internal修饰的函数只能够在当前合约或子合约中使用) function safeMul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; as 阅读全文
摘要:
1.一个包里面有两个类,test和test2,test2 继承test,但是就是输出不了 test中变量a 的值,报错 Cannot make a static reference to the non-static field a 后得知,原来 statci 静态方法中不能引用非静态变量,把 te 阅读全文