bug_x

导航

 

2020年6月1日

摘要: 1、常用package package main import ( "fmt" "reflect" ) 2、%v 占位符 fmt.Printf("我是亚当,身高 %v 米,体重 %v 吨。", height, weight) fmt.Println(reflect.TypeOf(height), r 阅读全文
posted @ 2020-06-01 08:55 bug_x 阅读(121) 评论(0) 推荐(0) 编辑
 
摘要: 1、 (1) go run .\test.go package main import "fmt" func main(){ fmt.Println("Hello, World.") } (2) go build .\test.go ## 生产test.exe (3) int8 有符号的8位整数,范 阅读全文
posted @ 2020-06-01 08:46 bug_x 阅读(141) 评论(0) 推荐(0) 编辑