求大神指点,只循环10次,怎么写代码def ball__name(red,blue): '''红色的乒乓球33个,输出6个不同的数字, 蓝色的乒乓球16个,输出1个 ''' import random tone = [] while True: reds = random.randint(1,33) if reds not in tone: tone.append(reds) if len(tone) == 6: tone.sort() #print(tone) blues = random.randint(1,16) tone.append(blues) break print(tone) for i in range(ball__name(red,blue)): i += ball__name(red,blue) print(i) continueball__name(1,1)