我正在尝试使用python在VScode中创建一个绞刑者游戏。我导入了pygame,现在它不让我执行pygame.init()。我看了这里的其他帖子,我试过了,但我不确定为什么它不起作用。其他帖子据说要转到setting.json并添加
{ "python.linting.pylintArgs": [
"--extension-pkg-whitelist=lxml" // The extension is "lxml" not "1xml"
]
}
{"python.linting.pylintArgs"
我想使用Visual代码对接器容器中的GPU来使用TensorFlow来训练模型。要为我的容器构建一个映像,我使用next Dockerfile:
FROM mcr.microsoft.com/vscode/devcontainers/anaconda:0-3
ARG PROJECT_NAME=fire_rec
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/