单选题:Python用带头结点的单链表表示链式栈,其头指针为head,结点的指针域为next,则出栈操作的语句为( )
用带头结点的单链表表示链式栈,其头指针为head,结点的指针域为next,则出栈操作的语句为( )
### 来源:
黄龙军, 等. 数据结构与算法(Python语言描述), 上海: 上海交通大学出版社, 2023. (In Press)
A.head.next=head.next.next
B.head.next=None
C.head=head.next
D.head.next.next=head.next
答案:A
### 来源:
黄龙军, 等. 数据结构与算法(Python语言描述), 上海: 上海交通大学出版社, 2023. (In Press)
A.head.next=head.next.next
B.head.next=None
C.head=head.next
D.head.next.next=head.next
答案:A