/usr/bin/python^M: bad interpreter: No such file or dir解决办法

 Linux直接./xx.py执行python脚本时报错

修改脚本文件编码

$vi xx.py

$set ff=unix

$:wq

原文地址:https://www.cnblogs.com/java-stack/p/11952661.html