烟外晓寒2011

烟外晓寒2011的笔记

来自Python.Django视频讲座二(0)

significant whitespacewhitespace is meaningful in python:especially indentation an placement of newlines.  

来自Python.Django视频讲座三(0)

variablesno need to declareneed to assigneverything is a variableno array 

来自Python.Django视频讲座五(0)

Modulescollection of stuff-functions, classes, variablesPackagescollection of modules in directory Eclipse

来自Python.Django视频讲座六(0)

Integers are implemented as C longs.Float implemented as C doubles 

来自Python.Django视频讲座七(0)

Stringsrepeated with the * sign‘abc’*3abcabcabcs[i:j]fetches elements i(inclusive)through j(not inclusive)s[i:j:k]extracts every kth element starting with index i and ending with index j.Tuplesa immutable list()

来自Python.Django视频讲座八(0)

Arraysare not a built-in python type.included in Numeric, NumPyfrom numpy import *vec = array([1,2,3])mat = array([[1,2,3],[4,5,6],[7,8,9]])Lists & ArraysThe biggest difference arrays and lists is speed:it's much faster to carry out operatons on arrays than on each term in a given list.

来自Python.Django视频讲座十一(0)

MTC-Model Template ViewTemplate displays information View fetches information