極簡說明Multi-thread/Multi-process、CPU-bound/IO-bound和GIL
Posted on November 26, 2022 in CS. View: 6,307
Python GIL 究竟怎麼影響我們應該採用Multi-thread或Multi-process? Multi-thread和Multi-process又是什麼?什麼是CPU-bound和IO-bound呢?
Continue reading
物件導向武功秘笈(3):內功篇 — 物件導向指導原則SOLID
Posted on April 14, 2018 in CS. View: 9,142
物件導向怎麼用才能成就好的程式碼? / UML類別圖 / 單一職責原則(Single Responsibility Principle, SRP) / 開閉原則(Open-Closed Principle, OCP) / 里氏替換原則(Liskov Subsititution Principle, LSP) / 迪米特法則(Law of Demeter, LoD) / 依賴倒置原則(Dependence Inversion Principle, DIP) / 接口分隔原則(Interface Segregation Principle, ISP)
Continue reading
物件導向武功秘笈(2):招式篇 — Python與Java的物件導向編程介紹
Posted on April 10, 2018 in CS. View: 14,109
物件導向編程 / 類別(Class)與物件(Object) / 方法多載(Method Overloading) / 物件導向三大特性—封裝(Encapsulation) / 物件導向三大特性—繼承(Inheritance) / 抽象化:抽象類別(Abstract Class)、抽象方法(Abstract Method)和接口(Interface) / 物件導向三大特性—多型(Polymorphism) /
Continue reading
物件導向武功秘笈(1):認知篇 — 什麼是好的程式?
Posted on April 05, 2018 in CS. View: 5,910
Python玩數據 (3):Numpy [2/2]
Posted on May 06, 2017 in CS. View: 4,933
Python玩數據 (2):Numpy [1/2]
Posted on April 17, 2017 in CS. View: 13,689
輕鬆談演算法的複雜度分界:什麼是P, NP, NP-Complete, NP-Hard問題
Posted on March 30, 2017 in CS. View: 76,162
Python玩數據 (1):安裝Python, IPython, Numpy, Pandas
Posted on March 20, 2017 in CS. View: 5,727