Я пробовал:
Код: Выделить всё
import sys
try:
color = sys.stdout.shell
except AttributeError:
raise RuntimeError("Use IDLE")
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-pycharm
Код: Выделить всё
import sys
try:
color = sys.stdout.shell
except AttributeError:
raise RuntimeError("Use IDLE")