Python 使用一等函數實現設計模式 - 重構策略模式

""" >>> from promotions import * >>> joe = Customer('John Doe', 0) >>> ann = Customer('Ann Smith', 1100) >>> cart = [LineItem('banana', 4, .5), ... LineItem('apple', 10, 1.
相關文章
相關標籤/搜索