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

标签 python pydev

我正在 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.

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

最佳答案

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

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

关于python - pydev - 有人可以解释一下这些错误吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6187874/

相关文章:

python - 如何使rpm模块与(非系统)Python2.7一起工作

python - 覆盖需要在 __init__() 中计算的子类中的变量的正确方法是什么?

python - 在 Pydev Eclipse 中使用 MySQL

Eclipse 内容辅助 : accepting the selection with the . 或 ( 键

python - 带有 PyDev + Eclipse : "include-ids" option no longer allowed, 的 PyLint 1.0.0 破坏了 Eclipse 集成

python - 从列表中删除出现在另一个列表中的元素并返回它们的索引

python - 使用 Pandas 叠加多个直方图

python - 合并 hdf5 检查点文件

python-3.x - ft2font 可以在 Anaconda 提示终端中从 matplotlib 导入,但在 Ecelipse/pydev 的 python 脚本中失败

python - 如何: add a class docstring with Eclipse/Pydev via keyboard shortcut?