📅  最后修改于: 2022-03-11 14:47:16.693000             🧑  作者: Mango
#python3
from inspect import currentframe, getframeinfo
frameinfo = getframeinfo(currentframe())
print(frameinfo.filename, frameinfo.lineno)