class MyController(BaseController):
def index(self):
# Return a rendered template
#return render('/test.mako')
# or, return a response
return ''
"index"함수에 "self"가있는 이유는 무엇입니까? 파이썬 코드에서 (self) 란 무엇입니까? (OOP 질문)
나는 철탑 컨트롤러
중복 된 것들 : http://stackoverflow.com/search?q=python+self. 구체적으로 http://stackoverflow.com/questions/2709821/python-self-explained –