用python写一个命令行脚本greet.py比如打印出"hello world".每次使用的时候都需要在终端敲下这个
> python greet.py
> "hello world"
请问如何将这个greet.py转变成下面这种直接调用的方式
> greet
> "hello world"
* 不需要输入python
* 不要定位到greet.py所在的文件夹中去执行
> python greet.py
> "hello world"
请问如何将这个greet.py转变成下面这种直接调用的方式
> greet
> "hello world"
* 不需要输入python
* 不要定位到greet.py所在的文件夹中去执行