hello.py提示出現File "<stdin>",line 1錯誤

寫第一個Python程序hello.py,內容僅有一句,print ('hello world!') 運行 Python hello.py 出錯,提示: File "<stdin>" , line 1 python hello.py SyntaxError:invalid syntax 原因:       在shell腳本中,運行shell腳本命令;在Python命令行中,運行Python代碼。
相關文章
相關標籤/搜索