淘先锋技术网

首页 1 2 3 4 5 6 7

函数的尾部return要是用的返回值defroll_dice(number=3,points=None):print('Choicepoints...')ifpointsisNone:points=[]whilenumber>0:point=random.randrange(1,7)points.append(point)number=number-1returnpoints