if-elif语句中的缩进问题

问题描述 投票:0回答:1

I have tried deleting the indentations and introducing spaces myself but still get the same error

python if-statement tabs python-requests indentation
1个回答
0
投票

不要自己添加空格。 >>>占用空间,但不是实际的缩进。因此它应该如下所示。

>>> if age>0:
    print ("O")
elif age<0:
© www.soinside.com 2019 - 2024. All rights reserved.