Skip to content

Instantly share code, notes, and snippets.

@tongyx361
Last active December 1, 2023 12:48
Show Gist options
  • Save tongyx361/36ba9e438b3a80bc1b9a3ef366d44a39 to your computer and use it in GitHub Desktop.
Save tongyx361/36ba9e438b3a80bc1b9a3ef366d44a39 to your computer and use it in GitHub Desktop.
Python print for debugging
# >>> debug
def print_debug(name, obj):
print(f"[DEBUG] {name}: ({type(obj).__name__})({obj})", end="\n---\n")
print_debug("test", [])
# <<< debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment