강의

멘토링

커뮤니티

Inflearn Community Q&A

howhow0403's profile image
howhow0403

asked

Type Python! Correct class usage and object-oriented programming

Understanding self and cls

f"{객체}" 출력값에서의 숫자값과 id(객체)에서의 숫자값의 차이가 무엇인가요??

Written on

·

327

1

 

아래 동그라미 친 두 숫자값의 차이가 궁금합니다.

위는 메모리의 실제 주소이고 아래것은 python 내부적으로 가지고 있는 주소값일까요?

 

ooppython

Answer 1

1

amamov님의 프로필 이미지
amamov
Instructor

안녕하세요!

위에 주소 즉, 0x7f845f70c310은 아래 주소 140206513636112의 16진수 값입니다.

결국 같습니다!

howhow0403's profile image
howhow0403

asked

Ask a question