摘要:
数组 创建数组的规则 // 1. 创建数组的规则 contract MyContract { // 定长数组 动态数组 string[10] public arr1; int256[] public arr2; bytes public arr3; bytes1[] public arr4; fun 阅读全文
posted @ 2021-01-14 17:05
sorachannel
阅读(120)
评论(0)
推荐(1)
摘要:
函数输出 关键字 retuens:在函数名后面,定义返回值 return:在函数体中,将返回值返回 // SPDX-License-Identifier: MIT pragma solidity 0.8.0; contract MyContract { int public number = 2; 阅读全文
posted @ 2021-01-14 16:06
sorachannel
阅读(462)
评论(0)
推荐(0)