本程序使用python3.7写成:
a = int(input()) r = a % 10 a = a // 10 print(str(r),end=",") r = a % 10 a = a // 10 print(str(r),end=","), print(str(a))