go语言初始化结构体指针

go语言初始化结构体指针

head:=&ListNode{}
或者
head:=new(ListNode)

posted @ 2021-08-11 18:39  CJ-cooper  阅读(111)  评论(0编辑  收藏  举报