Day1 -03 第一个Go 程序
Goland -> New Project ->
package main #主函数所在的包
func 表示函数,main 表示程序的主函数 (表示函数的参数){表示代码的内容}
main (){
go语言中有丰富的库,
fmt println (a) 表示打印输出的意思,上面会自动出现,
import "fmt"
package main import "fmt" func main(){
fmt.Println("hello world")
fmt.Println("hello world2")
fmt.Println("hello hello")
}
// 注释, 行注释
/*
块注释
*/
0542
阅读(3844) | 评论(0) | 转发(0) |