부스트캠프 AI Tech 3기 Pre-Course [3] Module and Project 모듈은 패키지 안에 들어있다. 레고블록(모듈)들이 모여 완성품(패키지)을 만들 수 있다. 프로그램에서 작은 프로그램 조각 하나 프로그램을 모듈화 시키면 다른 프로그램에서 다시 사용하기 쉽다. ex) python 에서 built-in Module인 random import random random.randint(1,1000) 이런 모듈을을 모아둔게 패키지이고, 패키지를 공개하는 것이 프로젝트이다. Module 파이썬에서 module은 .py 파일이다. import 를 사용해서 모듈을 호출(loading)할 수 있다. # fah_converter.py def convert_c_to_f(celcius_value): return celcius_value 8 9.0 /5 +32 # modle_ex.py impor.. 이전 1 다음