我想打印一个内置方法的源代码。例如,数学是python的内置模块,我想打印ceil的源代码
我知道如何使用inspect.getsource打印自定义模块的源代码
需要帮助 
我正在尝试创建一个程序,我可以在其中调用任何内置方法或函数,并且它将仅显示该函数或模块的源代码。
Python 几乎拥有内置库中的所有内容,我想使用这些库
示例:
input: factorial
output:
        def factorial(n):
            if n == 0:        
                return 1      
            else:      
                return n * factorial(n-1)
Run Code Online (Sandbox Code Playgroud)
   import inspect
inspect.getsource(factorial)
Run Code Online (Sandbox Code Playgroud)
不起作用......导致类型错误
import inspect
import math
print(inspect.getsource(math.ceil)
Run Code Online (Sandbox Code Playgroud)
TypeError: <built-in function ceil> is not a module, class, method, function, traceback, frame, or code object
Run Code Online (Sandbox Code Playgroud)
提前致谢 :)