Python/팁 (2) 썸네일형 리스트형 파이썬 코테에서 팁 deepwelloper.tistory.com/69 [BOJ] 파이썬(Python) 주의사항 및 Tips float, double 등의 부동소수점 자료형은 나타내는 수의 범위가 넓지만, 그 범위 안에 있는 모든 수를 정확하게 나타낼 수 있는 게 절대 아닙니다. 범위도 넓은데 원하는 수를 다 표현할 수도 있고 deepwelloper.tistory.com deepwelloper.tistory.com/87 파이썬(Python) Tips and Tricks 1. 실행시간 측정하기 import time startTime = time.time() # 코드 작성 endTime = time.time() totalTime = endTime - startTime print("Total time required to exec.. 파이썬 함수 호출 시 Call by Value Vs. Call by Reference - immutuable object(int, float, str, tuple)는 call by value로 - mutuable object(list, dict, set)는 call by reference로 전달된다. cf) code13.tistory.com/214 파이썬 함수 호출 시 참조 호출 방법 (Call by reference) C에서는 다음과 같은 방법으로 참조 호출 방법 (Call by Reference) 를 사용 1 2 3 4 5 6 7 8 9 10 11 12 13 void dataCalc(int *data) { *data = *data + 1; } int main() { int data =.. code13.tistory.com 이전 1 다음