linux命令行下
vim hello.py
hello.py文件中插入如下代码:
#!/use/bin/env python
print("hello,World")
执行:./hello.py 即可。
ps:执行前要给予hello.py执行权限,chmod 755 hello.py
linux命令行下
vim hello.py
hello.py文件中插入如下代码:
#!/use/bin/env python
print("hello,World")
执行:./hello.py 即可。
ps:执行前要给予hello.py执行权限,chmod 755 hello.py
转载于:https://www.cnblogs.com/LittleSpring/p/9329210.html