代码如下:报错为name 'self' is not defined,请问是什么原因?
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
代码没贴全还是咋的?