哪位大神可以帮我解释下每行代码是什么干嘛的吗
class NewStyle(object):
def __init__(self, name, deacription):
self.name = name
self.deacription = deacription
if __name__ == "__main__":
old = OldStyle('old', 'odl style class')
print old
print dir(old)
print type(old)
print "-----------------------------------------"
new = NewStyle('new', 'new style class')
print new
print dir(new)
print type(new)
有哪位大神可以帮我解释下每行代码是干嘛的吗