• 数位反转模板
    reverse = 0
    while x > 0:
      reverse = reverse*10 + x % 10
      x = x/10
    

© 2020. All rights reserved.