vscode 显示 Module 'turtle' has no … member

初次运行与 turtle 相关的 Python 代码时,vscode 上显示 Module 'turtle' has no … member

这时,我们可以在 vscode 的设置里添加如下代码:

"python.linting.pylintArgs": ["--generate-members"]

之后,就不会报错了。

猜你喜欢

转载自www.cnblogs.com/lonelyWMW/p/11920417.html