creation des classe mediafile
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class MediaFile:
|
||||
|
||||
def __init__(self,filename,format,path):
|
||||
self.filename = filename
|
||||
self.format = format
|
||||
self.path = path
|
||||
|
||||
def __str__(self):
|
||||
return f"filename:{self.filename} ,Format:{self.format}, Path Name:{self.path}"
|
||||
|
||||
def __eq__(self,other):
|
||||
if self.filename == other.filename and self.path == other.path:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user