linux执行python
2022-12-15 本文已影响0人
Tess鱼丸
编辑python文件
[root@localhost ~]# vim hello.py
#!/usr/bin/python3
print ("hello")
:wq
[root@localhost ~]# chmod +x hello.py
[root@localhost ~]# ./hello.py
编辑python文件
[root@localhost ~]# vim hello.py
#!/usr/bin/python3
print ("hello")
:wq
[root@localhost ~]# chmod +x hello.py
[root@localhost ~]# ./hello.py