📜  编程中的缩进级别 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:25.958000             🧑  作者: Mango

代码示例1
value = 18
typer = "integer"
if value > 20:
    print("It's greater than 20")
    if typer == "integer":
      print("Oh number")
    else:
      print("Oh no number")

#the fisrt if is on indentation level zero,print inside it is on indentation level 1 and so on
#in some programming languages first level starts as one rather than zero