본문 바로가기 메뉴 바로가기

Data Makes Our Future

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Data Makes Our Future

검색하기 폼
  • 분류 전체보기 (741)
    • Data (18)
      • Statistics (10)
      • Analysis (8)
    • SQL (24)
      • Organize (3)
      • Install (2)
    • R (58)
      • Collection (4)
      • Process (33)
      • Analysis (11)
      • Visualize (4)
      • Install (3)
    • Python (56)
      • Collection (10)
      • Process (27)
      • Visualize (2)
      • Install (3)
    • Web (164)
      • API (16)
      • Spring (58)
      • JAVA (49)
      • Infra (11)
    • PS (366)
      • Algorithm (45)
      • Problem_Solving (311)
      • PS_Note (7)
    • Books (35)
    • ADsP (4)
    • eTc (16)
  • 방명록

package (1)
[Python] 모듈(Module), 패키지(package)

모듈 : 메서드의 집합 참고글 : [Python] 파이썬 기초(변수, 출력, 모듈, 연산, 문자열) #. 모듈 생성# my_module.pydef func1() : 명령어 def func2() : 명령어 >>> import my_module>>> my_moduel.func1()>>> my_moduel.func2() # calculator.py 로 모듈 생성def sum(x, y) : return(x + y) def minus(x, y) : if x >= y : return(x - y) else : return(y - x) # 모듈 호출>>> import calculator>>> calculator.sum(1,3)4>>> calculator.minus(1,3)2 #. 모듈 호출# 모듈명을 생략하고 메서드 ..

Python/Process 2019. 1. 29. 14:07
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
링크
  • Gitbook
  • resume
Total
Today
Yesterday
TAG
  • PYTHON
  • 백준
  • spring
  • BFS
  • C
  • c++
  • DATA
  • 시뮬레이션
  • dp
  • Algorithm
  • coding
  • R
  • java
  • DFS
  • BOJ
more

Blog is powered by Tistory / Designed by Tistory

티스토리툴바