module_print.py 162 B

1234567
  1. import inspect
  2. def to_print(*args):
  3. frame = inspect.currentframe()
  4. func_name = frame.f_back.f_code.co_name
  5. print("func:{}".format(func_name), args)