go语言初始化结构体指针

go语言初始化结构体指针

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

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