📜  文件“demo_indentation_test.py”,第 2 行 print(“五大于二!”) ^ IndentationError: expected an indented block - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.802000             🧑  作者: Mango

代码示例1
f 5 > 2:
print("Five is greater than two!")

ERROR : File "demo_indentation_test.py", line 2
    print("Five is greater than two!")
        ^
IndentationError: expected an indented block
_____________________________________________________________________________
f 5 > 2:
    print("Five is greater than two!")
    
ERROR : No Error !