单选题
执行下列程序,输出的结果是?()
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()
A.
李斌今天去购物,总共花了280元
B.
今天去购物,总共花了450元
C.
李斌今天去购物,总共花了450元
D.
今天去购物,总共花了280元
发表评论 取消回复