第29523题 单选题
在Python中实现单链表时,若要在指针p指向的节点之后插入新节点q,以下操作顺序正确的是?

已知单链表节点的定义如下:

class ListNode:
    def __init__(self, val=0, next=None):
        self.val = val
        self.next = next
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析