我无法在Visual Studio Code中运行我的代码。当我键入$ code hello.py
时会发生这种情况:
在您使用的图像中code hello.py
。您应该改用python hello.py
。只有在安装Python软件时选中“将Python添加到路径”,才能在命令提示符下运行。
如果您使用的是Mac
在Mac中,将自动安装Python 2.7。如果要使用Python 3,则必须从Python官方网站手动安装并python3 hello.py
使用Python 3。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句