solidity 学习笔记
Blog iconhomjewang
May 7
// SPDX-License-Identifier: MIT pragma solidity^0.8.4; 以上版本可用 contract helloweb3{ 定义合约 helloweb3 string public _string="hello web3!"; } 定义公开的变量_string为 hello web3! 语句执行后会显示 hello web3! contract inttest{ uint256 public _number=20220330; 定义正整数变量_number为2022030 uint256 public _number1=_number+1; 定义正整数变量_number1的值为_numbei的值加1 uint256 public _number2=2**2; “**”代表指数 即 2**2=4,2**3=8... uint256 public _number3=7%2; "%"代表取余 7=2*3+1,即7%2=1 bool public _number4=_number2>_number3; bool 即为布尔型变量,有ture 和 fe...

homjewang

Written by
homjewang

web2 to web3

Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

homjewang

Subscribe