詹羽靜python維基百科

維基百科PYTHON

網址前後加上引號'(可以單引號'SINGLE QUOTATION MARK也可以雙引號"DOUBLE QUOTATION MARK),命令SRC=SOURCE來源,嵌入框架中FRAME這些都是HTML=HyperText Markup Language=超文件標記語言。告訴大家你也學過CSS

縮排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 space. Python語法中的複合語句,包含了一些其他語句,它們以某種方式影響或控制這些其他語句的執行。Python的複合語句包含一個或多個子句(clause),子句構成自一個頭部(header)和一個套件(suite)。特定複合語句的子句頭部都在同樣的縮排層級上,每個子句頭部開始於一個唯一標識關鍵字,並結束於一個冒號。套件即語法意義上的塊,是這個子句所控制的一組語句。

留言

  1. 期末考.https://zhanyujin.blogspot.com/2026/01/python.html
    https://zhanyujin.blogspot.com/2025/12/python.html
    https://zhanyujin.blogspot.com/2025/12/ifelif.html
    https://zhanyujin.blogspot.com/2025/12/pythonglobalif.html
    1201.程式碼pre貼上,不要留空白,因為不懂得人會無法執行,且要用border.https://zhanyujin.blogspot.com/2025/12/pythontkintermath.html
    1124. red dashed. https://zhanyujin.blogspot.com/2025/11/pythontryexcept.html
    1117 yellow dashed.https://zhanyujin.blogspot.com/2025/11/return.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

詹羽靜python字串方法count與split

詹羽靜PYTHON字串find字串[開始:結束]