linux下最简单的可执行python文件
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