behold针对大型python项目的调试工具
兼容 Python2 以及Python3.没有其他依赖包。
安装:
pip install behold
简单使用:
from behold import Behold
letters = ['a', 'b', 'c', 'd', 'A', 'B', 'C', 'D']
for index, letter in enumerate(letters):
# The following line is equivalent to
# print('index: {}, letter: {}'.format(index, letter))
Behold().show('index', 'letter')
输出:
index: 0, letter: a
index: 1, letter: b
index: 2, letter: c
index: 3, letter: d
index: 4, letter: A
index: 5, letter: B
index: 6, letter: C
index: 7, letter: D