如果感觉python idle自带的主题不好看,本文提供了从网上收集来的几个主题 。
教程开始:
- 在安装目录中找到“config-highlight.def”这个文件。(路径为 \Python37\Lib\idlelib\config-highlight.def)
- 用编辑器打开这个文件。
- 在文件末尾加入以下代码并保存。
- 打开IDLE,依次打开Options - Configure IDLE - Highlights,选中“a Built-in Theme”,点击右边第一个方框选择自己喜欢的主题。
[Obsidian]
definition-foreground = #ff8080
error-foreground = #FF0000
string-background = #494949
keyword-foreground = #e1031e
normal-foreground = #5ca404
comment-background = #293134
hit-foreground = #E0E2E4
builtin-background = #293134
stdout-foreground = #678CB1
cursor-foreground = #E0E2E4
break-background = #293134
comment-foreground = #5ae100
hilite-background = #2F393C
hilite-foreground = #E0E2E4
definition-background = #293134
stderr-background = #293134
hit-background = #000000
console-foreground = #E0E2E4
normal-background = #293134
builti