Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上我想做的是制作一个名为 doPython 的文件,在这个文件中我想做命令:
python myFile.py data.txt
我试过谷歌搜索并制作了一些脚本,但我似乎无法让它工作。它说“当我尝试使用时没有这样的文件或目录
#!/usr/bin/env python python myFile.py data.txt
#!/usr/bin/env python表示您的脚本将使用 Python 解释器运行。您只需要致电sh或bash:
#!/usr/bin/env python
sh
bash
#!/bin/sh python myFile.py data.txt