python-3.x - Visual Studio 代码 pylint : Error when

为什么我在 VCCode 中收到此消息但实际上没有错误?

还有这个

如果我运行该程序,它会正常运行。

最佳答案

无论是否被 python 文件使用,您都可以禁用 pylint,如下所示:

  • 转到 VS Code 中的设置
  • 搜索“pylint”
  • 您可以在“Python › Linting: Pylint Enabled”中找到以下复选框 是否使用 pylint 对 Python 文件进行 lint。
  • 只需取消选中(无需重新启动 VS Code)

关于python-3.x - Visual Studio 代码 pylint : Error when all is ok,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46630664/

相关文章:

mysql - phpmyadmin error 403 - Forbidden rejected

python - 如何将 Spyder 设置为默认程序/应用程序以打开 (.py) Python 文

bazel - 从 bazelrc 选择特定于平台的默认值 --config

amazon-web-services - AWS API 网关响应正文模板映射(foreach)

vb.net - 字符串中的代码格式 - 我可以将文本设为粗体吗?

angular - 将 CanActivate() 委托(delegate)给组件

rest - Django REST 框架 RequestsClient 内容类型

python-3.x - 在 XGBoost 中应用增量学习进行分类设置时出错(python)

php - 使用 PHP Trader 函数的问题 : Call to undefined func

node.js - 更新 Docker 镜像中的 npm