Python Real World Data Science [Digest 2]

此系列更新《Python Real World Data Science》的阅读摘记,每周六更新。

全书介绍Python在数据科学领域中的应用,分为四模块:

  • Python 基础
  • 数据分析
  • 数据挖掘
  • 机器学习

本文为系列第二篇,介绍python基础。

Module 1 Python Fundamentals

Chapter 2 Object-oriented Design

ObjectDataBehavior的集合

面向对象是复杂系统建模的一种方式,软件开发时遵循的某种风格。

OOA 或者 OOE(Object-Oriented Analysis/Exploration)

  • 分析问题,找出Object和它们之间的关系Interaction
  • What needs to be done
  • 系统需要满足的一系列要求

OOD (Object-Oriented Design)

  • 实现细节,对象命名,行为(类,接口)
  • how things should be done

OOP(Object-Oriented Programming)

  • 写代码

上述三个过程可能会互相混淆——迭代式开发

UML(Unified Modeling Language)

  • 沟通
  • 记录设计决定
  • Attributes
  • Behaviors
Python Real World Data Science [Digest 2]_第1张图片
example of uml

Interface

  • 隐藏细节(抽象)
  • 封装接口:其它对象与之互动的唯一途径
  • try placing yourself in the object's shoes

Composition & Inheritance

  • 层次化的抽象

你可能感兴趣的:(Python Real World Data Science [Digest 2])