1. 程式人生 > >成功解決python中出現的IndentationError: expected an indented block的錯誤

成功解決python中出現的IndentationError: expected an indented block的錯誤

當在python中出現這個錯誤時,IndentationError: expected an indented block


我們先分析一下這句話的意思:預期的一個縮排排印的空格,然後你會發現,這是一個so easy的問題,是因為你沒有對print(x,y)的前邊進行Tab鍵縮排,啊哈哈,這麼簡單,好啦,解決完問題繼續學習去吧!