Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

새싹교실/2017/의사양반/2017.05.08

From ZeroWiki

수업자료

코드 : https://github.com/gnidoc327/doctor_man 책 : https://wikidocs.net/11

내용

python

입출력

  • 입력 - input
  • 출력 - print

가상환경

  • virtaulenv - pycharm에서 해보자
  • pip
    • get-pip.py
    • show
    • list
    • freeze
    • install/uninstall
    • -r
    • -m

클래스

  • class 클래스명:
    • 클래스 첫글자는 대문자 = class Service, class Person
    • self
    • init

모듈

  • import 모듈이름
  • from 모듈이름 import 모듈함수
  • main
    • `if __name__ == "__main__":`


패키지

__init__.py

예외처리

try: 
except:
  pass
except 발생오류 as 오류 메시지 변수:
else:
finally:

def error(self):
  raise NotImplementedError

내장함수

  • isinstance
  • id
  • input/print
  • lambda
  • len
  • list
  • str
  • type

외장함수

  • sys
  • os
  • time
  • random



새싹교실/2017/의사양반