Discuss / Python / 第三题

第三题

Topic source
    a = s.split('.')
    return reduce(lambda x, y: x*10+y, map(int, a[0])) + reduce(lambda x, y: x/10+y, map(int, a[1][::-1])) / 10

  • 1

Reply