Presentation is loading. Please wait.

Presentation is loading. Please wait.

Xiaojuan Cai Computational Thinking 1 Lab 中院 305 做 ppt ,讲解 5 分钟 做了什么 怎么做 角色分工 演示一下.

Similar presentations


Presentation on theme: "Xiaojuan Cai Computational Thinking 1 Lab 中院 305 做 ppt ,讲解 5 分钟 做了什么 怎么做 角色分工 演示一下."— Presentation transcript:

1 Xiaojuan Cai Computational Thinking 1 Lab 中院 305 做 ppt ,讲解 5 分钟 做了什么 怎么做 角色分工 演示一下

2 Xiaojuan Cai Computational Thinking 2 Lecture 12 Reviews Xiaojuan Cai (蔡小娟) cxj@sjtu.edu.cn Fall, 2015

3 Xiaojuan Cai Computational Thinking 3 Roadmap 考点复习 题型分析

4 Xiaojuan Cai Computational Thinking 4 概论 计算思维 程序 计算机科学 面向过程 面向对象 三个基本特征 : 封装 (Encapsulation) 、继承 (Inheritance) 、多态 (Polymorphism) 简单算法的复杂度分析

5 Xiaojuan Cai Computational Thinking 5 Built-in type and expressions Data types: int, float, bool, complex Operation 运算符的优先级 Float 浮点数表达的不精确性 Identifier 标识符的命名 Reserved words 保留字 Variables 变量, immutable and mutable

6 Xiaojuan Cai Computational Thinking 6 Statements simple_stmt expression_stmt, assignment_stmt, pass_stmt, del_stmt, print_stmt, return_stmt, break_stmt, continue_stmt, import_stmt, global_stmt, compound_stmt if_stmt, while_stmt, for_stmt, try_stmt, function_def_stmt, class_def_stmt

7 Xiaojuan Cai Computational Thinking 7 Conditionals if-elif-else for-else while-else Boolean expression

8 Xiaojuan Cai Computational Thinking 8 Sequences Strings slice, built-in functions, methods in string, Lists, slice, built-in functions, methods in list, list comprehension (+), Tuples (+) File objects Open, read, readline, readlines, write, close, seek

9 Xiaojuan Cai Computational Thinking 9 Functions Scopes Argument-Passing ( by reference ) Recursive functions built-in functions input( ), raw_input( ), range( ), abs(x), bin(x), chr(i), float([x]), hex(x), id(object), type(object)

10 Xiaojuan Cai Computational Thinking 10 Standard library string math random time

11 Xiaojuan Cai Computational Thinking 11 Classes methods + attributes instances use of self inheritance

12 Xiaojuan Cai Computational Thinking 12 Data collections and data structures List, nested list Dictionary Stack Queue

13 Xiaojuan Cai Computational Thinking 13 Algorithm design and analysis Search Sort Recursive functions Divide-and-conquer Algorithm analysis

14 Xiaojuan Cai Computational Thinking 14 Conclusion 计算的思维是最重要的, Python 只是一个载体 最重要的能力:终身学习能力 自学的能力、获取信息的能力 学习以外:成功依赖于情商 礼貌、尊重 书籍是最好的老师


Download ppt "Xiaojuan Cai Computational Thinking 1 Lab 中院 305 做 ppt ,讲解 5 分钟 做了什么 怎么做 角色分工 演示一下."

Similar presentations


Ads by Google