Solidity开发实例之Hello World cryptosupu 2022-05-20 144 阅读1分钟 pragma 用来指定 Solidity 的编译器版本。 本教程使用0.8.13. // SPDX-License-Identifier: MIT // 编译器版本必须大于等于 0.8.13 并低于 0.9.0 pragma solidity ^0.8.13; contract HelloWorld { string public greet = "Hello World!"; }