输入整数n,每行显示它得一位数,从个位数开始例如输入1589,显示:9851
#数学方法 n=int(input()) while n: print(n%10) n//=10 #取巧方法 n=input() n=n[::-1] print(*n,sep='\n')