id() 함수는 객체의 id(유일한 정수값)를 반환합니다.
객체의 ID를 반환합니다.
class Foo: b = 5 dummyFoo = Foo() print('id of dummyFoo =',id(dummyFoo))
결과
id of dummyFoo = 140343867415240
10 파이썬에서 현재 시간을 구하는 방법
12 python에서 에러가 발생한 후에도 코드 실행을 계속할 수 있는 방법
11 파이썬에서 string, datetime으로 정렬하기
11 Python에서 exception이 생긴 라인 숫자값을 어떻게 구할 수 있나요?
15 에러가 있는데 Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings'
© 2022 pinfo. All rights reserved.