设头指针为head,指向头结点node1.并且 node1->val= 1; node1->next= nullptr; head= node;
记住head->val= 1;因为head就node1;