class acuess:
def muban(self,ball_color,count_frequency): #确定球的颜色和次数
ball_number = [] #用于将输入的结果输出
count = 0 #用于确定循环基底
while count < count_frequency: #循环直到写满次数
choice = input("输入第{}个{}".format(count+1,ball_color))
if not choice.isdigit() :#非数字
print("输入不合法")
continue
choice = int(choice)#int化
if 0 < choice < 33: #添加的同时+1
ball_number.append(choice)
count += 1
return ball_number
blue_boll = acuess
blue_boll.muban("蓝",3)
red_boll = acuess
red_boll.muban("红",6)
print(red_boll,blue_boll)
问题,写法上在输入blue_boll.muban("蓝",3)这一行时要求输入3个字符(self,ball_color,count_frequency)一般情况不是将self隐藏输出吗