IndentationError: expected an indented block

在if条件判断中,print需要按Tab键缩进,否则会报错

IndentationError: expected an indented block

1 age = 20
2 if age >= 18:
3     print('your age is', age)
4     print('adult')
原文地址:https://www.cnblogs.com/denggelin/p/8946161.html