如果出现turtle库引用后的红色波浪线报错,如下: 仅需在VS Code中的settings.json添加如下代码即可: "python.linting.pylintArgs": ["--generate-members"]