在我的白色背景的python shell中,它看起来像这样:
如您所见,当出现错误时,它是白色背景上的白色文字。为了看到它们,我必须强调文本。我没有运气找到控制这些颜色的脸。任何人都有任何想法?
由于
答案 0 :(得分:1)
在~\.ipython\ipythonrc
中有此部分(距离顶部约1/4)
# colors - Coloring option for prompts and traceback printouts.
# Currently available schemes: NoColor, Linux, LightBG.
# This option allows coloring the prompts and traceback printouts. This
# requires a terminal which can properly handle color escape sequences. If you
# are having problems with this, use the NoColor scheme (uses no color escapes
# at all).
# The Linux option works well in linux console type environments: dark
# background with light fonts.
# LightBG is similar to Linux but swaps dark/light colors to be more readable
# in light background terminals.
# keep uncommented only the one you want:
colors Linux
#colors LightBG
#colors NoColor