在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
我不确定问题是什么?