执行下列程序,输出的结果是?()
class Money: name ="" shoe =0 satchel =0 clothes =0 def __init__(self,n,s1,s2,c): self.name = n self.shoe = s1 self.satchel = s2 self.clothes =c def rmb_1(self): print("{}今天去购物,总共花了{}元。". format(self.name,self.shoe+self.satchel+ self.clothes)) r= Money('李斌',120,50,280) r.rmb_1()
李斌今天去购物,总共花了280元
今天去购物,总共花了450元
李斌今天去购物,总共花了450元
今天去购物,总共花了280元