代码示例:(标识:python_ref_keyword_else_1)
python_ref_keyword_else_1.py
x = 3
if x > 5:
  print("YES")
else:
  print("NO")
运行结果: