python/shell腳本報異常^M: bad interpreter: No such file or directory

問題: 在Windows寫了一python腳本,上傳Linux服務器執行,報異常*****^M: bad interpreter: No such file or directoryhtml 緣由: windows下編寫的腳本文件,Linux沒法識別格式 解決:python vi打開腳本shell 命令模式下,查看文件格式windows :set ff? #顯示dos 設置文本的模式類型:服務
相關文章
相關標籤/搜索