如何查看/打印保存在变量中但已删除代码的函数?

Mas*_*mad 6 python function

我正在编写一个脚本,并且不小心删除了一个函数的代码(因此无法撤消),但该函数保存在内存中。

print(diff)

#output
<function diff at 0x7f48f238a670>
Run Code Online (Sandbox Code Playgroud)

有没有办法打印这个函数的代码?