Advertisement
fkudinov

Управління пам'яттю - код із відео

Oct 29th, 2024
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | Source Code | 0 0
  1. # program.py
  2.  
  3.  
  4. import gc
  5. print(gc.get_count())
  6. print(gc.get_threshold())
  7.  
  8.  
  9. a = 123
  10. b = "abc"
  11.  
  12.  
  13. def c(foo, buzz):
  14.  
  15.     bar = "some"
  16.     print(locals())
  17.     print(foo, buzz, bar)
  18.  
  19.  
  20. print(globals())
  21.  
  22.  
  23. c(foo=10, buzz="any")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement