-
Python public, private, protectedPython & Flask & Django 2017. 1. 25. 23:48class foobar(object):variable1 = None # public 변수
_variable2 = None # protected 변수__ variable3 = None # private 변수def public_method(self): # public methodpassdef _protected_method(self): # protected methodpassdef __private_method(self): # private methodpass[참고]'Python & Flask & Django' 카테고리의 다른 글
SQLAlchemy Tutorial (0) 2017.02.02 SQLAlchemy 시작하기 - Part 2 (0) 2017.02.01 SQLAlchemy 시작하기 - Part 1 (0) 2017.01.31 WSGI (Web Server Gateway Interface) (0) 2017.01.19 if __name__ = ""__main__: 의미! (0) 2017.01.19