简述Python垃圾回收机制: 当x=10,赋值x=11,的代码,也就是10没有对应的变量名, 10在python眼中相当于垃圾,就会被清理掉,释放内存. 对于下述代码: x = 10 y = 10 z = 10 del y 10 的引用计数为多少? 应用计数为2 ```python x = 257 y = x del x z = 257 ``` x对应的变量值257的引用计数为多少? 应用计数1 简述Python小整数池概念: 小整数池范围[-5,257],该范围内的小整数对象是全局解释器范围…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…