You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
326 B
16 lines
326 B
6 years ago
|
class Model(object):
|
||
|
"""docstring for Model."""
|
||
|
def __init__(self, *args):
|
||
|
self.var = list(args)
|
||
|
|
||
|
def added(self, *args):
|
||
|
self.var = self.var+ list(args)
|
||
|
|
||
|
|
||
|
def removed(self, *args):
|
||
|
for item in args:
|
||
|
self.var.remove(item)
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
x=Model('paulasda')
|