-->
当前位置:首页 > 题库

单选题:Python中,带头结点的单链表的结点结构Node包含数据域data和指针域next,头结点为head,判断链表为空的条件是(

Luz5年前 (2021-05-10)题库1174
Python中,带头结点的单链表的结点结构Node包含数据域data和指针域next,头结点为head,判断链表为空的条件是( )。

@[D](2)

A. head.next=None
B. head=None
C. head.next!=None
D. head.next==None



A.head.next=None
B. head=None
C.head.next!=None
D.head.next==None


答案:D