1 a = int(input(">>")) 2 n = 1 3 while True: 4 b = a%10 5 print(b,end=',') 6 a = a//10 7 if a != 0: 8 n += 1 9 else: 10 break 11 print('这是',n,'位数')