先看问题代码: 代码一: class AddrBookEntry(object):foo = 3def __init__(self, nm, ph):self.name = nmself.phone = phdef updatePhone(self, newph) :self.phone = newphprint……