golang试题-面的代码会输出什么?

package main

import "fmt"

type Person struct {
    Name string
    Age  int
}

func main() {
    p := &Person{Name: "Alice", Age: 30}
    fmt.Println(p.Name, p.Age)
}

网友评论0