VSCode中出現Module 'pygame' has no 'init' member錯誤的解決方法

在VSCode設置中找到settings.json,如下圖: 加入如下代碼保存並關閉json文件: 「python.linting.pylintArgs」: [ 「----extension-pkg-whitelist=1xml」 ] 對應問題就會忽略掉不再出現。
相關文章
相關標籤/搜索