uint[] result = new uint[](3);
uint[] memory result = new uint[](ownerZombieCount[_owner]);
[类型] | [只能被__调用] |
private |
合约内部 |
internal |
合约内部/继承的合约 |
external |
合约外部 |
public |
任何 |
状态修饰符
view 不写数据,
pure 不读写
这两个从合约外部调用不费gas,内部调用会耗费gas
自定义modifiers
function test(n个参数) external view onlyOwner anotherModifier { /* ... */ }
payable 可支付,可接受ether 以太