#! / usr / bin / python class Point: def __init (tự, x = 0, y = 0): self.x = x self.y = y def __del __ (self): class_name = tự .__ class __.__ name__ in class_name , "phá hủy" pt1 = Point () pt2 = pt1 pt3 = pt1 in id (pt1), id (pt2), id (pt3) # in các id của các obejcts del pt1 del pt2 del pt3
đang được dịch, vui lòng đợi..