class MyClass(object):
def __init__(self,name,age):
self.name = name
self.age = age
def print_func(self):
print '%s : %d years old ' % (self.name, self.age)
f = MyClass('Vickey_Wu',23)
f.print_func()
class MyClass(object):
def __init__(self,name,age):
self.name = name
self.age = age
def print_func(self):
print '%s : %d years old ' % (self.name, self.age)
f = MyClass('Vickey_Wu',23)
f.print_func()