"Destructor"의 두 판 사이의 차이

(새 문서: ;destructor ==Python== category: Python <source lang='Python'> </source> ==같이 보기== *constructor *소멸자)
 
4번째 줄: 4번째 줄:
[[category: Python]]
[[category: Python]]
<source lang='Python'>
<source lang='Python'>
class Dog(object):
    def __del__(self):
        print('destructing Dog')
def func():
    mydog = Dog()
func()
# destructing Dog
</source>
</source>



2014년 8월 22일 (금) 14:20 판

destructor

1 Python

class Dog(object):
    def __del__(self):
        print('destructing Dog')

def func():
    mydog = Dog()

func()
# destructing Dog

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}