$GOPATH (go工作目录)go get net/smtp (安装第三方包)go run write.go (执行go脚本)go build write.go (生产二进制文件)./write (执行二进制文件)