定义在Python函数中查找Bulit源代码的函数
我想构造一个函数来调用函数中请求的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 要建立这个函数,我必须
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