gpt4 book ai didi

python - ## 在 python 中使用 notepad++ 语法着色

转载 作者:行者123 更新时间:2023-11-28 20:11:58 25 4
gpt4 key购买 nike

在我的编辑器(notepad++)的Python脚本编辑模式下,一行

## is this a special comment or what?

变成与普通#comment 不同的颜色(黄色)。

##comment 与#comment 有什么特别之处?

最佳答案

从 Python 的角度来看,没有区别。但是,Notepad++ 的荧光笔将 ## 序列视为 STRINGEOL,这就是它以这种方式着色的原因。看这个thread .

关于python - ## 在 python 中使用 notepad++ 语法着色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1410063/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com