Python代码块与缩进 Python 用缩进表示代码块。冒号 : 后面通常跟一个缩进代码块。 if score >= 60: print("pass") 缩进常出现在: Python条件判断 Python for循环 Python while循环 Python函数 缩进不一致会导致语法错误。