执行下列程序,输出的结果是?( )
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()
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析