各位老師,通過sublime運行python代碼時報錯不能正常運行是什么原因了?報錯如下:
C:\Users\Dell\AppData\Local\Programs\Python\Python38\python.exe: can't find '__main__' module in ''
[Finished in 0.2s with exit code 1]
[shell_cmd: python -u ""]
[dir: K:\python編程系列\python共享原始碼檔案\學習課程]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\Dell\AppData\Local\Programs\Python\Python38\Scripts;C:\Users\Dell\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Dell\AppData\Local\Programs\Python\Python38\]
拜謝各位賜教!
uj5u.com熱心網友回復:
這是你用sublime新建檔案后沒有先保存就運行的原因。注:保存檔案是注意格式:檔案名+.py
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/40178.html
上一篇:無法匯入pygame
