pydev - 有人可以解释一下这些错误吗

发布于 2024-11-10 21:40:32 字数 391 浏览 3 评论 0原文

我正在 Eclipse 中使用 PyDev 进行开发。我在我的代码中添加了一些注释。我在某些单词下面看到波浪状的红线。程序运行良好并且没有提到任何警告。那么这些波浪线是什么意思呢? 例如,

#!/usr/bin/python - I get the line under usr and python

# generated by accessing registry using another script written in VBScript.
# The scripts can do the follwing things.

- I get wavy lines under the words registry and following.

我需要这些注释,因为我稍后可能会单独运行该模块。 感谢您的帮助。

I am developing using PyDev in Eclipse. I have put in some comments in my code. I get wavy red lines underneath certain words. The program runs fine and there are no warnings mentioned. So what is the meaning of these wavy lines.
e.g.

#!/usr/bin/python - I get the line under usr and python

# generated by accessing registry using another script written in VBScript.
# The scripts can do the follwing things.

- I get wavy lines under the words registry and following.

I need these comments as I may run the module on its own later.
Thanks for the help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甚是思念 2024-11-17 21:40:32

尼尔说的是实话,除了告诉你把它关掉——评论中的拼写检查非常有帮助——那些后来的人会感谢你确保他们可以阅读你的评论,而无需尝试解码随机拼写错误。

这些行只是指出 IDE 认为拼写错误的单词。我不知道为什么它不理解“registry”,但事实上,您拼错了“following”(如“folwing”)。修复后者,忽略前者(或将其添加到字典中,不记得是否有方便的机制有!请参阅下面 Macke 的有用评论。)。

Neil speaks the truth, except for telling you to turn it off -- spell check in comments is quite helpful -- those who come after will thank you for ensuring they can read your comments without trying to decode random spelling errors.

The lines are simply pointing out words your IDE thinks are spelled wrong. I don't know why it doesn't understand "registry", but you have, in fact, misspelled "following" (as "follwing"). Fix the latter, ignore the former (or add it to the dictionary, don't remember if there's a convenient mechanism for that There is! See Macke's helpful comment below.).

同尘 2024-11-17 21:40:32

可能这只是一个拼写检查器。您有一个拼写错误“正在关注”而不是“正在关注”。

Might be this is just a spellchecker. You have a typo "follwing" instead of "following".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文