Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
定义在Python函数中查找Bulit源代码的函数_Python - Fatal编程技术网

定义在Python函数中查找Bulit源代码的函数

定义在Python函数中查找Bulit源代码的函数,python,Python,我想构造一个函数来调用函数中请求的bulit的源代码,例如 def recall_source_of_built_in(sum()): #look up the directory of where the source codes are listed in windows #find the function whetehr it exists #if exists, open/read/ and display it on my Shell 要建立这个函数,我必须

我想构造一个函数来调用函数中请求的bulit的源代码,例如

def recall_source_of_built_in(sum()):
    #look up the directory of where the source codes are listed in windows
    #find the function whetehr it exists
    #if exists, open/read/ and display it on my Shell

要建立这个函数,我必须从哪里开始?

像这样将
sum()
传递到函数中的可能重复项将调用
sum
并将结果传递给函数,而不是实际的函数。@user3591723现在我很难找到存储内置项的目录路径。我怎么去那里?操作系统:Windows 10