嗨,大家好我计划从其他类parameter.The代码调用其他类我已经尝试调用其他类从内部类
class barber:
def __init__(self, age, money):
self.age = age
self.money = money
class Employee:
def __init__(self, name):
self.name = name
def displayCount(self):
print "Total Employee"
emp1 = Employee(barber(2,5))
print emp1.self.age
当我尝试这个代码我得到一个空白页没有任何错误。 。可你们点我在哪里,我去错了?? ..
在此先感谢