cecream是一个Python库,可通过最少的代码使打印调试更具可读性 Rename:冰淇淋 github:https://github.com/gruns/icecream.git
Env
pip3 install icecream
from icecream import ic
Source Code
# -*- coding: utf-8 -*-
#
# IceCream - Never use print() to debug again
#
# Ansgar Grunseid
# grunseid.com
# grunseid@gmail.com
#
# License: MIT
#
from os.path import dirname, join as pjoin
from .icecream import * # noqa
from .builtins import install, uninstall
# Import all variables in __version__.py without explicit imports.
meta = {}
with open(pjoin(dirname(__file__), '__version__.py')) as f:
exec(f.read(), meta)
globals().update(dict((k, v) for k, v in meta.items() if k not in globals()))
How to Use?
Github:https://github.com/gruns/icecream.git Offic Web:https://www.cnpython.com/pypi/icecream