【ICS_32A】Introductions

1. Where are we going?

  • Python!
    • Basicis functions vars types arithmetic logic etc...
    • Designing our own types, exceptions, writing programs made up of multiple functions
  • Python programming with Libraries

2. How are we going to do all of this?

3. Jobs

Medical Billing Company: whether the company should pay for their workers' injury bills which caused in working time.
Target Customers: Insurance Company

Python

expressions get evaluted, and have a result

3.0除法全部采用浮点制

trackpack,观察错误信息时,从下面开始看

所有错误本身就是一个对象,每个对象都有一个type

type(xxxx)可以显示括号内对象的type,而这个type本身也是一个对象,是一个type对象

int 可以无限大整数

float

豆知识:python整除的时候,如果15.0//3.0会是5.0。先运算前面的算式,在进行向下取整。

5-3-2,编程语言大多是从左开始的

豆知识:阶乘是从右开始的 4**3**2=4**(3**2)!=(4**3)**2