Skip to main content
 首页 » 编程设计

Python Shell 需要一个缩进 block

2025年05月04日15tintown

<分区>

我在解释器提示符下尝试了这段代码:

>>> x = 7 
>>> if x > 5: 
... print("five") 

我收到此错误消息:

File "<stdin>", line 2 
    print("five")  
IndentationError: expected an indented block 

为什么?