def cal_digit(number):
    hundreds = number//100
    tens = number//10%10
    ones = number%10
    return hundreds,tens,ones
result = cal_digit(123)       #以返回值以元组的形式赋值给result
print(result)
x,y,z = cal_digit(123)        #返回值解包后分别赋值给x,y,z
print(x,y,z)
