整体都是对的 就是少一句话
{ list.head=new_node; list.tail=new_node; } 这里 之前之后都没有对 new_node->next 初始化为NULL;导致后面添加乱了。