問題描述:
今天用vscode導(dǎo)入之前寫的python工程出現(xiàn)如下錯(cuò)誤:
vscode Class '' has no 'objects' member
(學(xué)習(xí)視頻推薦:java視頻教程)
解決方法:
打開 "設(shè)置",然后搜索 python.linting.pylintArgs 添加 "–load-plugins", "pylint_django" 到數(shù)組中就可以了。
如下圖所示:
相關(guān)教程推薦:vscode教程