I have a confusion when I do some practice, the code and output are as
following,
print 'In fun()....'
In fun()....
None
<function fun at 0x00CC1270>
In fun()....
None
what is 'testfun'? Why it is 'None'? And print testfun2(), what is the
meaning of 'None'?
Thanks!
following,
>>def fun():
>>testfun = fun()
>>print testfun
>>testfun2 = fun
>>print testfun2
>>print testfun2
>>print testfun2()
None
>>>
meaning of 'None'?
Thanks!
Comment