甲班李于歆PYTHON特色:維基百科

維基百科PYTHON

縮排INDENTATION

Python uses whitespace indentation(使用空白鍵縮排), rather than curly brackets or keywords(而不是使用大括號或是關鍵字), to delimit blocks(來分隔區段). An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block.[82] Thus, the program's visual structure accurately represents its semantic structure.[83] This feature is sometimes termed the off-side rule. Some other languages use indentation this way; but in most, indentation has no semantic meaning. The recommended indent size is four spaces. Python uses whitespace indentation, rather than curly brackets or keywords, to delimit blocks. An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block.[82] Thus, the program's visual structure accurately represents its semantic structure.[83] This feature is sometimes termed the off-side rule. Some other languages use indentation this way; but in most, indentation has no semantic meaning. The recommended indent size is four spaces.[84]

留言

  1. 期末考pre有小問題https://qxrlybn.blogspot.com/2026/01/python.html
    curly brackets. https://qxrlybn.blogspot.com/2025/12/python.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

李于歆python字串方法count與split

李于歆PYTHON字串find字串[開始:結束]