最佳答案
如果你有两个功能,比如:
def A
def B
A 呼叫 B,你能知道是谁在 B 内部呼叫 B 吗,比如:
def A () :
B ()
def B () :
this.caller.name