pragma solidity ^0.4.6;
contract TestPush{
bytes public name = new bytes(2);
// 会增加长度
function pushName(byte b) public{
name.push(b);
}
}
solidity学习笔记(十七)可变数组push
最新推荐文章于 2024-04-12 23:57:36 发布
pragma solidity ^0.4.6;
contract TestPush{
bytes public name = new bytes(2);
// 会增加长度
function pushName(byte b) public{
name.push(b);
}
}