编写代码,实现整数的逆序输出。如:2567,逆序输出7652;1380,逆序输出为831
b = list(str(a)) while b[-1] == '0': b.pop() int(''.join([str(i) for i in b[::-1]]))
int和string的区别