- 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.
推薦閱讀
- Reporting with Visual Studio and Crystal Reports
- INSTANT Weka How-to
- 假如C語言是我發(fā)明的:講給孩子聽的大師編程課
- 劍指大數(shù)據(jù):企業(yè)級數(shù)據(jù)倉庫項目實戰(zhàn)(在線教育版)
- SQL Server實用教程(SQL Server 2008版)
- PHP 8從入門到精通(視頻教學(xué)版)
- Python Programming for Arduino
- Java EE 8 and Angular
- WordPress Search Engine Optimization(Second Edition)
- JavaEE架構(gòu)與程序設(shè)計
- 和孩子一起學(xué)編程:用Scratch玩Minecraft我的世界
- Mastering XenApp?
- 創(chuàng)新工場講AI課:從知識到實踐
- Raspberry Pi Robotic Projects
- HTML5+CSS3+JavaScript案例實戰(zhàn)