编辑器
x = locals() print(x["__file__"])
demo_ref_globals2.py