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

go初识

时间:2018-07-21 12:16:59      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:ring   col   class   输出   print   for循环   int   初识   nbsp   

for循环

for i := 1; i < 5; i++ {
    fmt.Println(i*i)
}
ls := "agd"
for _, arg :=  range ls{
    fmt.Println(string(arg))
}

格式化输出

 

go初识

标签:ring   col   class   输出   print   for循环   int   初识   nbsp   

原文地址:https://www.cnblogs.com/zhzhlong/p/9344765.html

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