U E D R , A S I H C RSS

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

내용

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



Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:30:08
Processing time 0.0189 sec