码迷,mamicode.com
首页 > 其他好文 > 详细

Go Example--Hello

时间:2018-10-12 16:02:33      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:语句   世界   字符   lan   ola   import   好的   Golan   插入   

Hello world

package main

import "fmt" //通过import导入fmt标准包

func main() {
    //语句结尾不需要;分号,
    //Println函数会将多个字符串拼接起来,中间插入空格
    //go文件默认支持utf8编码,所以能很好的支持多语言
    fmt.Println("hello world", "你好,世界")
}

Go Example--Hello

标签:语句   世界   字符   lan   ola   import   好的   Golan   插入   

原文地址:https://www.cnblogs.com/promenader/p/9778161.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!