var int string = "int"
int := "int"
var int = "int"
我觉得理论上,这三行代码的设置没有问题,各自都可以,我不是很懂,想请问大神,我编译过了,不行,但是没报错
var int string = "int"
int := "int"
var int = "int"
fmt.Println(int)
fmt.Printf("int type is %T,int = %v",int,int)
#1
更多评论