12345678910111213141516class MyClass: def __init__(self, value): self.value = value print("Class is created! Value = ", value) def __del__(self): print("Class is deleted!") # 인스턴스 객체 생성 - 생성자 호출(레퍼런스 카운터 : 1)c = MyClass(10)# 레퍼런스 카운터 증가 : 2c_copy = c# 레퍼런스 카운터 감소 : 1del c# 레퍼런스 카운터 감소 : 0 - 소멸자 del c_copyColored by Color Scriptercs 레퍼런스 카운터가 1개 이상 존재한다면 del 구문을 사용해도 소멸자는 호출되지 않음 객체가 참조될 때마다 카운터를..
123456789101112131415161718import timel = range(1000) t = time.mktime(time.localtime())for i in l: print(i,)t1 = time.mktime(time.localtime()) - t t = time.mktime(time.localtime())print(", ".join(str(i) for i in l))t2 = time.mktime(time.localtime()) - t print("for 문으로 각 인자를 출력")print("Take {0} seconds".format(t1))print("join() 메서드로 출력")print("Take {0} seconds".format(t2)) Colored by Color Script..
- Today
- Yesterday
- JMeter
- 부하테스트
- iterable
- concurrency
- reactive stream
- observable
- reactive
- Java
- Design Pattern
- Concurrecy
- gslb
- Serialize
- Observer Pattern
- Serializable
- 영속성
- template
- 메인보드#asrock b650m #조립pc #후기이벤트
- in-memory
- 디자인패턴
- nosql
- Spring
- jdk11
- Effective JAVA
- LAMBDA
- exception
- template method
- jvm
- Redis
- strategy
- object
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |