Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class YobaCmd:
- def __init__(self, cmd):
- self.cmd = cmd
- def function1(self):
- return self.execute()
- def function2(self, count):
- return self.execute(count)
- def execute(self, *args, **kwargs):
- print(self.cmd)
- count = args[0] if len(args) else 0
- print(count)
- yc = YobaCmd('svarit_pelmeshki')
- yc.execute()
- yc = YobaCmd('skushat_pelmeshku')
- yc.execute(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement