-1
打印方法的名稱,例如:我怎樣才能在我的課
class Employee:
'Common base class for all employees'
empCount = 0
def __init__(self, name, salary):
self.name = name
self.salary = salary
Employee.empCount += 1
def displayCount(self):
print "Total Employee %d" % Employee.empCount
def displayEmployee(self):
print "Name : ", self.name, ", Salary: ", self.salary
我想打印的方法名。 輸出應該是這樣的:
Class Employee contains (displayCount,displayEmployee)
您使用哪種編程語言? – halfzebra