python如何反转一个整数?while True:n=str(input())if len(str(int(n))) == len(n):print(int(n[::-1]))else:print('前导符不能为0!')n = eval2023-02-20Python110