函数是内置类';功能';用python?
在python中,当我们创建函数时,该函数的类或类型是函数是内置类';功能';用python?,python,function,class,Python,Function,Class,在python中,当我们创建函数时,该函数的类或类型是function: def temp(): pass >>> type(temp) <class 'function'> >>> temp.__class__ <class 'function'> def temp(): 通过 >>>类型(临时) >>>温度等级__ 我想知道代码def~():是否调用内置类函数的\uu调用函数。我想检查内置类函数的源代码,但我不知道它
function
:
def temp():
pass
>>> type(temp)
<class 'function'>
>>> temp.__class__
<class 'function'>
def temp():
通过
>>>类型(临时)
>>>温度等级__
我想知道代码def~():
是否调用内置类函数
的\uu调用
函数。我想检查内置类函数
的源代码,但我不知道它在哪里
如果您知道,请通过@IainShelvington在评论中给出的链接回答。: 源代码中没有调用或引用。Hi!请考虑和/或接受一个解决你问题的答案。谢谢