$
Size: a a a
$
R3
__del__()
can be executed during interpreter shutdown. As a consequence, the global variables it needs to access (including other modules) may already have been deleted or set to None
. Python guarantees that globals whose name begins with a single underscore are deleted from their module before other globals are deletedВП
__del__()
can be executed during interpreter shutdown. As a consequence, the global variables it needs to access (including other modules) may already have been deleted or set to None
. Python guarantees that globals whose name begins with a single underscore are deleted from their module before other globals are deleted__del__
сработает после того, как удалятся переменные с одним подчёркиванием?ВП
__del__
?AT
БГ
py3
print(0b1+0b1)
2
R3
py3
print(0b1+0b1)
2
E
py3
print(0b1+0b1)
2
БГ
E
>>> print(0x10 + 0b10)
18
БГ
E
E
>>> bin(-1)
'-0b1'
БГ
БГ
>>> bin(-1)
'-0b1'
E
БГ
E