window目录挂载在cento上开发python,执行 ./test.py 提示 No such file or directory

原因是文件是msdos格式的,行尾是\r\n
 
 
#转换成linux格式即可解决
sed -i 's#\r##' test.py

参考:

命令行含义参考

猜你喜欢

转载自blog.csdn.net/weixin_38679007/article/details/79984970