protected
-
Python public, private, protectedPython & Flask & Django 2017. 1. 25. 23:48
class foobar(object): variable1 = None # public 변수 _variable2 = None # protected 변수 __ variable3 = None # private 변수 def public_method(self): # public method pass def _protected_method(self): # protected method pass def __private_method(self): # private method pass [참고] http://jasmine125.tistory.com/920