package main

import (
    "fmt"
)

type Student struct {
    id    int
    name  string
    score float64
}

func main() {
    s := []Student{
        Student{
            1,
            "yy",
            82,
        },
        Student{
            2,
            "yang",
            67,
        },
        Student{
            3,
            "go",
            91,
        },
    }
    fmt.Println(s)
}

相关文章:

  • 2022-12-23
  • 2021-12-25
  • 2021-09-30
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
猜你喜欢
  • 2021-10-10
  • 2021-07-21
  • 2021-07-06
  • 2021-11-24
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案