package main
func main(){
/*
课堂练习题
思考;下面的代码出什么内容
var name = "tom"//全局变量
func test01(){
fmt.Println(name)
}
func test02(){//编译器采用就近原则,路透采访
name:="jack"
fmt.Println(name)
}
func main(){
fmt.Println(name)//TOM
test01()//tom
test02()//jack
test03()//jack
输出的记过是tom,tom,jack,jack
}
课堂练习题
思考:下面的代码输出什么内容更,
var Age int = 20//ok
Name:="tom"//var Namestring Namen="tom"
func main(){
fmt.Println("namen",Namen
*/
}