Skip to content

Commit

Permalink
[전희선] 8주차 미션 제출 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
heehehe authored Jun 3, 2024
1 parent 0e2040c commit 836d460
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 8th_members/전희선/8주차.md
Original file line number Diff line number Diff line change
@@ -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
```
<img width="322" alt="image" src="https://github.com/heehehe/CPython-Guide/assets/41580746/f0135817-e2d8-4215-a79c-2a37a0ff4798">

0 comments on commit 836d460

Please sign in to comment.