Discuss / Python / 第三题-

第三题-

Topic source

大冰小松

#1 Created at ... [Delete] [Delete and Lock User]

from functools import reduce

def f(s): return int(s)

def g(x, y): y /= pow(10, len(str(y))) return x + y

anw = reduce(g, map(f, '123.4567676'.split('.'))) print(anw)


  • 1

Reply