當我收到以下錯誤預期的縮進塊錯誤:運行我的代碼
"Expected an indented block"
whenever I run the python script.
當我運行這段代碼:
def simple(): #creating my own function named simple
print("asdadasd")
當我收到以下錯誤預期的縮進塊錯誤:運行我的代碼
"Expected an indented block"
whenever I run the python script.
當我運行這段代碼:
def simple(): #creating my own function named simple
print("asdadasd")
這僅僅是一個壓痕問題:
你可以改變你的編輯器,使製表符和空格可見..並刪除所有標籤的空間 (只看看我的代碼下面我留下一些空間之前打印語句)
def simple():
print("hello")
歡迎來到stackoverflow.com。請花些時間閱讀[幫助頁面](http://stackoverflow.com/help),尤其是名爲[「我可以問些什麼話題?」]的章節(http://stackoverflow.com/help/)討論話題)和[「我應該避免問什麼類型的問題?」](http://stackoverflow.com/help/dont-ask)。還請[參觀](http://stackoverflow.com/tour)和[閱讀如何提出好問題](http://stackoverflow.com/help/how-to-ask)。最後,請學習如何創建[最小,完整和可驗證示例](http://stackoverflow.com/help/mcve)。 –
選擇人們實際閱讀的標題。它應該描述這個問題。 – Lexi
好吧,我讀過它。希望它有幫助。 – timgeb