def now(): ... print('2016-11-28') ...
f=now f() 2016-11-28 now() 2016-11-28 f.name Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'function' object has no attribute 'name'
在此插入代码
粘贴过来的格式有问题,我就是使用的f.下划线name下划线
我知道了那个是两个下划线组成的
Sign in to make a reply
董DHH董
def now(): ... print('2016-11-28') ...