IceCream
IceCream — Never use print() to debug again
https://github.com/gruns/icecream
code: python
from icecream import ic
var=1
ic(var)
Tips
Python Ice Cream: A better way to debug your code | by Priyank Desai | Dev Genius
You can use
ic.disable()
to stop ic() from printing. If you wish to use them again, use
ic.enable()
.]
Pythonでのデバッグ、print()からic()に置き換えよう! #プログラミング - Qiita