diff --git a/source/c02/c02_23.md b/source/c02/c02_23.md index b49369b..5fa5d56 100644 --- a/source/c02/c02_23.md +++ b/source/c02/c02_23.md @@ -9,7 +9,7 @@ import traceback traceback.print_stack(file=sys.stdout) ``` -或者直接使用 `where` (更简单的直接一个 `w`):https://www.codenong.com/1156023/ +或者直接使用 `where` (更简单的直接一个 `w`):https://stackoverflow.com/questions/1156023/print-current-call-stack-from-a-method-in-python-code ```python (Pdb) where diff --git a/source/c02/c02_23.rst b/source/c02/c02_23.rst index f716a41..3f9082b 100644 --- a/source/c02/c02_23.rst +++ b/source/c02/c02_23.rst @@ -11,7 +11,7 @@ traceback.print_stack(file=sys.stdout) 或者直接使用 ``where`` (更简单的直接一个 -``w``\ ):https://www.codenong.com/1156023/ +``w``\ ):https://stackoverflow.com/questions/1156023/print-current-call-stack-from-a-method-in-python-code .. code:: python