如何转换python文件转换为shell脚本

时间:2018-04-28 18:36:59

标签: python linux

在linux环境中运行名为shuf.py的文件时,我遇到了以下错误

./shuf.py -e cats and dogs
-bash: ./shuf.py: /usr/bin/python^M: bad interpreter: No such file or directory

但是当我做同样的事情时,它工作正常 python shuf.py -e cats and dogs

我附加了我的PATH,以便它是正确的,我的代码的第一行是 #!/usr/bin/python

我不确定问题是什么?

0 个答案:

没有答案