如果要消除這個副作用的話,可以使用python 內建的functools,只需要在def wrap()之前,加上@wraps(func),即可獲得原先的__name__ 屬性dosomething。
確定! 回上一頁