python中name 'self' is not defined?
阿神
阿神 2017-04-18 09:52:00
0
1
1026

代码如下:报错为name 'self' is not defined,请问是什么原因?

class ListNode(object):
    def __init__(self, x):
        self.val = x
        self.next = None
阿神
阿神

闭关修行中......

reply all(1)
左手右手慢动作

The code is not posted in full or something?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!