用icecream进行调试可以打印出变量名,调试起来更加方便 from icecream import ic def foo(i): return i + 333 ic(foo(123)) Prints ic| foo(123): 456