КБ
Size: a a a
КБ
VB
class Image:
def __init(self, image , _format, _base_64, flag):
self._format = _format
self._base_64 = _base_64
self._image = image
def show(self):
self.__class__.__show(self._image,self._format)
@classmethod
def __show(cls,_image,_format):
if _format == "png":
print(_image)
def __new__(cls, image , _format, _base_64, flag):
if flag :
return cls.__show(image,_format)
return super(Image,cls).__new__(cls)
img = Image(_format="png", _base_64="symbols", flag=False, image = "Img")
print(img._format)
k
class Image:
def __init(self, image , _format, _base_64, flag):
self._format = _format
self._base_64 = _base_64
self._image = image
def show(self):
self.__class__.__show(self._image,self._format)
@classmethod
def __show(cls,_image,_format):
if _format == "png":
print(_image)
def __new__(cls, image , _format, _base_64, flag):
if flag :
return cls.__show(image,_format)
return super(Image,cls).__new__(cls)
img = Image(_format="png", _base_64="symbols", flag=False, image = "Img")
print(img._format)
VB
I
class Image:
def __init(self, image , _format, _base_64, flag):
self._format = _format
self._base_64 = _base_64
self._image = image
def show(self):
self.__class__.__show(self._image,self._format)
@classmethod
def __show(cls,_image,_format):
if _format == "png":
print(_image)
def __new__(cls, image , _format, _base_64, flag):
if flag :
return cls.__show(image,_format)
return super(Image,cls).__new__(cls)
img = Image(_format="png", _base_64="symbols", flag=False, image = "Img")
print(img._format)
k
A
class Image:
def __init(self, image , _format, _base_64, flag):
self._format = _format
self._base_64 = _base_64
self._image = image
def show(self):
self.__class__.__show(self._image,self._format)
@classmethod
def __show(cls,_image,_format):
if _format == "png":
print(_image)
def __new__(cls, image , _format, _base_64, flag):
if flag :
return cls.__show(image,_format)
return super(Image,cls).__new__(cls)
img = Image(_format="png", _base_64="symbols", flag=False, image = "Img")
print(img._format)
A
VB
А
class Image:
def __init(self, image , _format, _base_64, flag):
self._format = _format
self._base_64 = _base_64
self._image = image
def show(self):
self.__class__.__show(self._image,self._format)
@classmethod
def __show(cls,_image,_format):
if _format == "png":
print(_image)
def __new__(cls, image , _format, _base_64, flag):
if flag :
return cls.__show(image,_format)
return super(Image,cls).__new__(cls)
img = Image(_format="png", _base_64="symbols", flag=False, image = "Img")
print(img._format)
А
VB
E
А
А
НК
VB
W
А
> open(src)
> os.remove(src)
А
with
🌚👌