在vscode里输入下面代码后 用mac的terminal没法直接运行.py文件诶..
#!/usr/bin/env python3
print ('hello world')
$ chmod a+x hello.py
运行程序,还需要加一句。
./hello.py
Sign in to make a reply
Wagner
在vscode里输入下面代码后 用mac的terminal没法直接运行.py文件诶..
#!/usr/bin/env python3
print ('hello world')
$ chmod a+x hello.py