Python 如何解决我的问题中的缩进错误

Python 如何解决我的问题中的缩进错误,python,windows,indentation,Python,Windows,Indentation,我看到了这个错误。你能帮我解决这个问题吗 if(0 > 1):print("helo") print("Zero freater than 1") else: print("1 is greater than 0") 这会奏效的。在if语句中,您可以将语句放在“:”旁边,但只有在只有一行代码要执行时才能这样做,但如果有多行代码要执行,则不能在“:”旁边有任何代码行。在print('helo')之前按enter键。获取为您执行

我看到了这个错误。你能帮我解决这个问题吗

if(0 > 1):print("helo")
 print("Zero freater than 1")
else:
 print("1 is greater than 0")

这会奏效的。在if语句中,您可以将语句放在“:”旁边,但只有在只有一行代码要执行时才能这样做,但如果有多行代码要执行,则不能在“:”旁边有任何代码行。

print('helo')之前按enter键。
获取为您执行缩进的任何IDE。
if(0 > 1):
 print("helo")
 print("Zero freater than 1")
else:
 print("1 is greater than 0")