- Learning Python Design Patterns(Second Edition)
- Chetan Giridhar
- 110字
- 2021-07-16 09:46:14
Patterns for dynamic languages
Python is a dynamic language like Lisp. The dynamic nature of Python can be represented as follows:
- Types or classes are objects at runtime.
- Variables can have type as a value and can be modified at runtime. For example,
a = 5
anda = "John"
, thea
variable is assigned at runtime and type also gets changed. - Dynamic languages have more flexibility in terms of class restrictions.
- For example, in Python, polymorphism is built into the language, there are no keywords such as
private
andprotected
and everything is public by default. - Represents a case where design patterns can be easily implemented in dynamic languages.
推薦閱讀
- Pandas Cookbook
- 匯編語言程序設計(第2版)
- Functional Programming in JavaScript
- 自然語言處理Python進階
- HTML5從入門到精通 (第2版)
- 編程菜鳥學Python數據分析
- 計算機應用基礎教程(Windows 7+Office 2010)
- JBoss:Developer's Guide
- App Inventor少兒趣味編程動手做
- Application Development with Swift
- Java 11 and 12:New Features
- 基于JavaScript的WebGIS開發
- Lync Server Cookbook
- 深入實踐C++模板編程
- 程序員超強大腦