// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Helloword{

    string strvar = "hello word";

    function sayhello() public view returns (string memory) {

        return strvar;

    }

}

写完后点击旁边compile simplestorag部署 

点击下面进行查看

更多推荐