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

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

修改脚本文件编码

$vi xx.py

$set ff=unix

$:wq

你可能感兴趣的:(python)