2024 iThome 鐵人賽
Share More Gain More
Python
選手 80 文章 1490
Day 25
2024-10-01
243
0
方法鏈Chaining class Car: def turn_on(slef): print("你啟動了引擎")...
Day 25
2024-10-01
448
0
字典(Dictionaries) 在 Python 中,字典(dictionary)是一種以鍵值對(key-value pairs)形式存儲數據的資料結構。每個...
Day 19
2024-10-01
415
0
在昨天的文章,網站的 bright mode or dark mode,是跟著裝置上的 mode 決定。 這是 bright mode 這是 dark mod...
Day 17
2024-10-01
248
0
裝飾器 (Decorators) 與閉包 (Closures) 是 Python 中蠻重要的概念,特別是在提升程式碼可讀性與模組化方面有極大幫助。 1.裝飾器的...
Day 20
2024-10-01
447
0
Python的函數是用來封裝一段可重用代碼的結構,能夠接受輸入(參數)並返回輸出(結果)。使用函數可以使代碼更具可讀性和可維護性,避免重複代碼。 基本結構 定義...