上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Something You Should Know Computational Thinking and Approach
Something You Should Know Computational Thinking and Approach
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY ntroduction 。Program paradigms -Imperative,functional,declarative,object-oriented ·Python Multi-paradimed Interpreter:.py is translated (not compiled)to byte code,and then is execute on Virtual machine of Python Software development process
Introduction • Program paradigms – Imperative, functional, declarative, object-oriented • Python – Multi-paradimed – Interpreter: .py is translated (not compiled) to byte code, and then is execute on Virtual machine of Python • Software development process
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY ntroduction Three key elements of Computer Science Design,Analysis,experimentation Two key elements of to develop a solution to a problem Data structure and Algorithm 。Modular programing 。Algorithm analysis Time and Space Big-O notation
Introduction • Three key elements of Computer Science – Design, Analysis, experimentation • Two key elements of to develop a solution to a problem – Data structure and Algorithm • Modular programing • Algorithm analysis – Time and Space – Big-O notation
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY BUILT-IN TYPE AND EXPRESSIONS
BUILT-IN TYPE AND EXPRESSIONS
上游充通大 ParisTech SHANGHAI JIAO TONG UNIVERSITY INSTITUT DES SCIENCES ET TECHNOLOGIES PARIS INSTITUTE OF TECHNOLOGY Object,variable and type Object is everywhere in Python Variable is a label that you could stick to any object Object has a type,variables do not have it The type of the object referred by 'toto' Mutable and immutable objects >>type('Hello,World!) Int,float,string,tuple <type 'str'> >>>type(17) -List,dictionary,others... <type 'int'> >>type(1.02) <type 'float'>
Object, variable and type • Object is everywhere in Python • Variable is a label that you could stick to any object • Object has a type, variables do not have it – The type of the object referred by ‘toto’ • Mutable and immutable objects – Int, float, string, tuple – List, dictionary, others… >>> type('Hello, World!') <type 'str'> >>> type(17) <type 'int'> >>> type(1.02) <type ‘float’>