自定义函数所属类function为什么系统说没有?
def a():
pass
type(a) #<class ‘function’>
type(function) # NameError: name ‘function’ is not defined
既然a是function的实例,为什么会说function没有定义?
推荐文章: