http://www.python.org/doc/
---------------------------------------------
list의 길이: len(list) != list.length() list.size() 이런 거 아님
변수 1씩 증가: a+=1을 쓸 것. a++ 이런 거 쓰지 않기
자릿수 버림: math.floor(),
정수로 바꿈: int(floor( . )는 -3.2 를 정수 -4로
이중 list 초기화 : F = [[0 for item1 in range(numTilings)] for item2 in range(m)]
객체의 얕은 복사에 주의할 것.
list of class object: a=[] 로 하고 a.append( Employee(age=20,salary=500) ); 이런 식으로.
'Application-level프로그래밍' 카테고리의 다른 글
[Python] 정적변수 사용하기 (0) | 2011.11.22 |
---|---|
List of numerical libraries (0) | 2011.11.13 |
C++ 참고 (0) | 2011.07.01 |
Java API (0) | 2011.04.04 |
STL set 이용하기 (0) | 2010.10.27 |