From 836d460e59dde8d358ff99395faa37fa8d73344e Mon Sep 17 00:00:00 2001 From: Heeseon Cheon Date: Mon, 3 Jun 2024 19:58:08 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=A0=84=ED=9D=AC=EC=84=A0]=208=EC=A3=BC?= =?UTF-8?q?=EC=B0=A8=20=EB=AF=B8=EC=85=98=20=EC=A0=9C=EC=B6=9C=20(#79)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../8\354\243\274\354\260\250.md" | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 "8th_members/\354\240\204\355\235\254\354\204\240/8\354\243\274\354\260\250.md" diff --git "a/8th_members/\354\240\204\355\235\254\354\204\240/8\354\243\274\354\260\250.md" "b/8th_members/\354\240\204\355\235\254\354\204\240/8\354\243\274\354\260\250.md" new file mode 100644 index 0000000..9ffd816 --- /dev/null +++ "b/8th_members/\354\240\204\355\235\254\354\204\240/8\354\243\274\354\260\250.md" @@ -0,0 +1,18 @@ +- 라이브러리(requests) import 후 참조 카운트 변화 확인 + ```python + >>> import sys + >>> for i in range(1, 4): + ... print(f"{i}: {sys.getrefcount(i)}") + ... + 1: 146 + 2: 110 + 3: 50 + >>> import requests + >>> for i in range(1, 4): + ... print(f"{i}: {sys.getrefcount(i)}") + ... + 1: 1063 + 2: 444 + 3: 244 + ``` + image