对于下方代码段的叙述中,正确的是( )。class shopping: def __init__(self,name,money):__________self.name = name__________self.money = money__________self.pen = 0 def buy(self):__________while self.money > 10:__________ self.money = self.money-7__________ self.pen = self.pen+1__________return self.moneyn = int(input())a = shopping(Xiaoming, n)print(a.buy())
(A)输入100时,输出的值是13
(B)输入100时,输出的值是9
(C)输入150时,输出的值是20
(D)输入150时,输出的值是3
参考答案
继续答题:下一题