实例创建和定义
class Person(object):
pass
xiaoming = Person()
xiaohong = Person()
print xiaoming
print xiaohong
print xiaoming==xiaohong
这段代码只是给予了地址空间对不?
class Person(object):
pass
xiaoming = Person()
xiaohong = Person()
print xiaoming
print xiaohong
print xiaoming==xiaohong
这段代码只是给予了地址空间对不?
2016-11-21
举报